WordPress.org

Ready to get started?Download WordPress

Forums

different image to blog page (1 post)

  1. germars
    Member
    Posted 8 months ago #

    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.

    I tried

    <?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 site is at and the blog page is the news page. I've been struggling with this for a week and not getting anywhere. Thanks!

Reply

You must log in to post.

About this Topic