I have been working with the comic press site, and I want to put a different header on each page. I’ve managed to get some pages to work with css (because they are categories, not “real” pages) and the regular pages in my site work with this code
<?php elseif(is_page('infographics')) : ?> <img src="../../images/infographics.png" />
However, I cannot figure out how to do it if the page is my blog page.
I’ve tried category, but I want any blog post to have this title. I end up with no title at all.
<?php elseif(is_category('post=239')) : ?> <img src="../../images/news.png" />
With 239 being the blog page id number. But that didn’t work. The page is fine if it is just a page, but when I assign it to be the blog page, it’s when I get into trouble.
- The topic ‘different image to blog page’ is closed to new replies.