• Resolved ma3ry

    (@ma3ry)


    I’m starting a new website at http://winningwebsitecreations.com

    The header is animated and LARGE! I like it for the home page and don’t want to remove it completely from the other pages. I’ve removed it from a couple of pages and it really needs something there.

    Is there a way that I can put a smaller image in the header space for my pages other than home?

    Many thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author Tom

    (@edge22)

    You can use the GP Hooks addon.

    Something like this would go into the “Before Header Content” hook:

    <?php if ( is_front_page() ) { ?>
    HEADER FOR HOMEPAGE IN HERE
    <?php } else { ?>
    HEADER FOR OTHER PAGES
    <?php } ?>

    Then make sure “Execute PHP” is checked.

    Hope this helps.

    Thread Starter ma3ry

    (@ma3ry)

    Thank you. This is really helpful. I just need to know what goes in HEADER FOR OTHER PAGES and HEADER FOR HOMEPAGE IN HERE

    I tried just using the name of the file for the other pages which didn’t work, so then I tried the url of it from the media library of http://winningwebsitecreations.com/?attachment_id=116 which also didn’t work.

    Sorry to be such a nuisance.

    Theme Author Tom

    (@edge22)

    This is your big animated header:

    <img title="" alt="" src="http://winningwebsitecreations.com/wp-content/uploads/2014/09/winningwebsitecreations3.gif" class="header-image">

    Your other image would be the same, but with the URL to the image replacing the current src, like this:

    <img title="" alt="" src="URL TO OTHER HEADER HERE" class="header-image">

    Thread Starter ma3ry

    (@ma3ry)

    OMG you are truly a God-send! Thank you so much! That worked perfectly! I couldn’t have done it without you!!!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Is is possible to have two headers – one for different pages’ is closed to new replies.