• Hi All

    I am using the 2011 theme and would like to remove the header image from all pages except the home page. I found an answer in the forum which said to add the following to style.css:

    .page-id-48 #branding { display:none; }

    This works well but also removes the menu bar which I would like to keep. Is there anyway to remove the header image and keep the menu bar please?

    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi mendok1!
    That’s not too difficult to do, but you will have to modify the header.php file, not upgrade safe though.

    In your header.php file, find this line:
    if ( ! empty( $header_image ) ) :

    And replace with:
    if ( ! empty( $header_image ) && is_home() && is_front_page() ) :

    I think it’s around line 81, not too sure, but just in case, find these words // Check to see if the header image has been removed, it’s right under that.

    Just remember, you will not be able to display featured images for posts and pages in that section, if you want to keep the featured images functionality, I suggest you modify the necessary template files. If you need more info, just drop me a line and I’ll try and help as best I can. Have fun, cheers

    Thread Starter mendok1

    (@mendok1)

    Thanks a lot for your help – that’s great.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Removing header image from selected pages’ is closed to new replies.