• Resolved jennytc

    (@jennytc)


    Has anyone figured out how to remove the header image from a specific page but leave it on the home page?

    I’ve been searching online and I have not seen a solution.

Viewing 6 replies - 1 through 6 (of 6 total)
  • If you need to remove it from all pages but the homepage, you could do something like this:

    <?php if ( is_home() ) { ?>
    	<div id="header">This is the header</div>
    <?php } ?>

    Or, to remove it from a particular page, modify the same idea:

    <?php if ( !is_page('page_name_slug_or_id') ) { ?>
    	<div id="header">This is the header</div?>
    <?php } ?>

    Read more about is_home and is_page.

    Thread Starter jennytc

    (@jennytc)

    OMG!!! THANK YOU SOOOO MUCH NOT EVEN THE CREATOR OF THE THEME COULD HELP ME THANKS A MILLION!!!!!!!!!!

    Awesome!

    Thread Starter jennytc

    (@jennytc)

    oh noes now my sidebar is at the bottom…. any idea how to fix that.. i had to add if home thingy to both the header portion and header image portion to get it to remove..

    Thread Starter jennytc

    (@jennytc)

    nevaa mind i PUT THE BEGINING OF THE STATEMENT THINGY BEFORE HEADER AND ENDED AFTER HEADER IMAGE AND IT SEEMS TO HAVE WORKED.. opps caps.

    Fantastic! Thanks very much!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How do you remove header image from a specific page’ is closed to new replies.