Remove header image from static pages
-
Hi,
I was wondering how to have the header image only on my homepage, and remove it from all other pages.
Within my header.php file, I have<div class="container"> <div class="container-inner"> <?php if ( get_theme_mod( 'header_image' ) ) : ?> <div id="header-image"> <img src="<?php header_image() ?>" width="950" height="200" alt="" /> </div> <?php endif; ?>I’ve tried changing it to <?php if (is_home):?> etc. but that wasn’t working.
Here is my site
Can anyone help me out?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Remove header image from static pages’ is closed to new replies.