WordPress blog as an include page
I have a slightly complex situation 🙂 I’m using the latest wordpress (184.108.40.206).
I have a pretty complex homepage, and I want to include the blog on the homepage with php. I have 2 concerns: first, the CSS. The CSS of the blog theme overrides the stylesheet for the homepage. Is there any way to fix this other than editing the theme’s css and changing the names of the styles?
Second, I want to get this page to validate in XHTML Transitional. My homepage already validates and so does the blog, but using the php include page function will include the doctype, head and html tags and that definitely won’t validate. The question: is there any way to get the blog as an include page function which will validate? This is just for the index.php of the blog- if the user clicks archives or searches, this will be in the blog skin, not as an include page or anything. I’ve made a copy of the index.php file in my theme folder and have stripped it of the header and footer, which contain the tags that won’t validate. Is there any way I can use this page instead of the index.php file to display the blog? I want the header and footer stripped just for this one page.
Thanks in advance for any replies and for your time.
- The topic ‘WordPress blog as an include page’ is closed to new replies.