• I’d like to see the default header image on the blog archives page. How do I configure this?

    Thanks

    Neel

    • This topic was modified 7 years, 9 months ago by neelmodi.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter neelmodi

    (@neelmodi)

    Never mind, I just had to add a featured image to the blog page..duh!

    Thread Starter neelmodi

    (@neelmodi)

    Oh but a follow-up question: how do I keep the banner header image on individual posts?

    Neel

    you mean define the height…
    please give a link to your site and what sizes you are trying to achieve

    Thread Starter neelmodi

    (@neelmodi)

    No, I mean on individual post pages, there is currently no banner image in the header. I’d like to add the default header image to the post pages.

    The site is in draft form until my client is ready to go live – sorry, no link yet.

    how about something like this

    <?php if ( has_post_thumbnail() ) {
    the_post_thumbnail();
    } else { ?>
    <img src="<?php bloginfo('template_directory'); ?>/images/default-image.jpg" alt="<?php the_title(); ?>" />
    <?php } ?>
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘header image on blog posts’ is closed to new replies.