I'd like to remove the header image on all the pages except my "home"-page.
Any ideas?
Thks
Edit the header.php
file and modify the following lines (probably around line 78-82):
Before
<?php
// Check to see if the header image has been removed
$header_image = get_header_image();
if ( ! empty( $header_image ) ) :
?>
After
<?php
// Check to see if the header image has been removed
$header_image = get_header_image();
if ( ! empty( $header_image ) && is_front_page() ) :
?>
is_front_page()
rather than is_home()
. The former returns true when the site front page is displayed, while the latter returns true when the blog posts index is being displayed.
Commented
Oct 13, 2011 at 18:31
This worked for me.
Change
if ( $header_image) :
to
if ( $header_image && is_front_page()) :
Remove the header image code from your category, post, single, etc files (leaving it in the index.php file).
If that is not of help, please explain the structure of your theme as well as post some code for additional help.