Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #19055

    Hi all,

    I’d like to know if it is possible to add a banner directly below the main navigation, but just e.g. on frontpage or pages I’d like to display it?

    I have tried to tweak the header template, but (like expected) the banner is shown everywhere.


    This is the code I use


    </div><!– end container_wrap–>

    <!– ####### END HEAD CONTAINER ####### –>

    </div>

    <div style=”text-align:center;”>Advertisment</div>



    Can anyone give me a hint concerning my question above?

    Tia

    #101990

    Hi Tia,

    You could use conditional tags to create a check and then display your html. See: http://codex.wordpress.org/Conditional_Tags

    Regards,

    Devin

    #101991

    Thanks Devin,

    will give it a try!

    Please let the topic open. I’ll post an update as soon as I have found the right solution.

    #101992

    Sure thing and good luck :)

    It can be a bit of trick to get things going if you are new to wordpress but the codex and google are great resources.

    Regards,

    Devin

    #101993

    Thanks Devin!

    This one is the proper code to stick a banner just on front page (header.php)

    </div><!– end container_wrap–>

    <!– ####### END HEAD CONTAINER ####### –>

    </div>

    <?php if(is_home() || is_front_page()) : ?>

    #101994

    Hi Tia,

    Glad that you’ve fixed it. :)

    Regards,

    Ismael

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

The topic ‘How to add an Banner below navigation, page-assigned’ is closed to new replies.