In the header.php look for the following code
elseif ( get_header_image() ) : ?>
<img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
<?php endif; ?>
And change to the following:
elseif ( get_header_image() ) : ?>
<?php if ( is_home() || is_front_page() ) : ?>
<img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
<?php endif; ?>
<?php endif; ?>
Remember always create a child theme first before making the aforementioned changes
Thread Starter
jseth
(@jseth)
Thank you for your reply! As I was waiting for a response, I did find that very solution! Under <div id="pic"> I inserted <?php if( is_home () || is_front_page() ) :?> then inserted <?php endif;?> directly before the </div><!-- #pic --> line, and the header image disappeared on all pages except the home page.
And yes, I have created a child theme. Thank you again.