genesis_after_header div to pages only

Community Forums Forums General Discussion genesis_after_header div to pages only

This topic is: resolved

This topic contains 2 replies, has 1 voice, and was last updated by  Nomad 1 year, 9 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #24969

    Nomad
    Participant
    Post count: 27

    Hi …I am new to this and still getting the hang of it but need some help pls. I am trying to add a div below the header using simple hooks but it must only appear on pages and not the static home page (am using  genesis_after_header)

    thanks for your time

    #24983

    Nomad
    Participant
    Post count: 27

    The site consists of only pages….no posts and i need to add a div that displays an image 100% width on all internal pages below the header but not on the home page. I am using simple hooks to add other divs but am not sure how to add it for pages only….and not home page….. I am sure there is some kinda “if else” condition i need to use but not sure …have been toying with <?php is_page(); ?> but cannot seem to get it right. Would appreciate any help…thanks

    #24992

    Nomad
    Participant
    Post count: 27

    Figured it out…..

     

    <?php
    if(is_page()) { ?>
    <div><h3>figured it out</h3></div>
    <?php }
    ?>

     

     

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.