Link to home
Start Free TrialLog in
Avatar of ezrhino5151
ezrhino5151

asked on

WordPress page without header

Hello experts,
Been looking everywhere for this solution, I hope someone here can help me out.

Background:
Currently our company blog is hosted with Hubspot.com under a subdomain of our tld (blog.mydomain.com).
Our main site is self hosted and running on Drupal (main.mydomain.com)  
Our current blog can be access one of two ways; blog.mydomain.com or main.mydomain.com/media/blog. The latter displays the blog in a iframe in order for it to look like its native to the site.

I have recently built a new blog called news.mydomain.com with WordPress.

To satisfy the requirements to allow me to move from Hubspot to WP is that I need to be able to bring the WP site into the main site without the header and footer.  Just the body of the WP site with the sidebars and updated posts.

Because of the this particular custom install of Drupal, any folder I add to the subdomain, main.mydomain.com, is not accessable via web browser.  I am forced to use a iframe. Yes, I know search engines ignore iframes.

I tried this plugin; "Just the Page" and its perfect.  But it does exactly what it is says, everything is stripped out.  If I could add the body, css, posts and side bar I would be out of the woods and add that page to the iFrame.  But the code to make that happen escapes me.

Thanks in advance
Richard
ASKER CERTIFIED SOLUTION
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ezrhino5151
ezrhino5151

ASKER

Thanks Jason, that did remove my footer but when I comment out the header I lose all formating.  Looks like the style sheet gets taken out along with it.
I'm using double column "Elegant Grunge" theme.  If that makes a difference.
I thought you wanted just a plain/unformatted content to be embedded via iframe?  Anyway not a major problem.  Put the get_header() call back in and edit the theme's header.php file and remove elements manually.
Sorry if I wasnt clear.  I have been asking about this so much I think I am skipping details without knowing it.
I need to keep the WP install intact.  The blog will be accessable in both the iframe and in the subdomain, of where the install of the WP is.  So the blog will need all the elements.  Unless I can force the page to call on a seperate header that shares the same css style sheet.  And make the header a height of 1pixel.  Which I tried and was unsuccesful.
Thanks
Richard
>> The blog will be accessable in both the iframe and in the subdomain

Ah-ha.  That makes things significantly harder.  So a given page or post has to look different if called from the iframe as opposed to being directly accessed from a subdomain?
Not a given page, only a specific page.  I was hoping that I could a create a specific page to place in the iframe that contained no header or footer, just body, side bars and posts.  
This will keep that particular page in the main site from having 2 headers.  When a user clicks on one of the posts in that page a new window would open to the WP domain with full header and footer.  I would add some java script with the iframe to force the the new window.
Thanks
Richard
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ok I'm all ears.  Where do I grab those calls? And I am guessing there is a specific place to put them in my page?
Thanks
Richard
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
With commenting out the header and footer worked.  Then adding the css to the page worked as well to get me this far.  I am only having one last issue this worked for all browsers except ie.  Is there any thing I can do about it?
Here is the code for the pages I am working on.
  Update:
Although I was trying the page directly from my browser and the page wasnt lining up.  When I try it in the iframe, it lines up perfectly.
Thanks for all the good info and patients.
Thanks
Richard