Forums
Home / Theme: Panoramic / header image on blog posts
(@neelmodi)
7 years, 9 months ago
I’d like to see the default header image on the blog archives page. How do I configure this?
Thanks
Neel
Never mind, I just had to add a featured image to the blog page..duh!
Oh but a follow-up question: how do I keep the banner header image on individual posts?
(@salsaturation)
you mean define the height… please give a link to your site and what sizes you are trying to achieve
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 } ?>