Remove navigation bar a from single page (3 posts)

  1. Northern Badger
    Posted 3 years ago #

    Hi there,

    I am trying to remove my navigation bar from a single page. The page is using a custom template.

    I have read on a few other post about using this kind of code;

    <?php if( !is_single() ) { ?>
    <div id="header">
    </div><!-- header -->

    <div id="navigation">
    </div><!-- navigation -->
    <?php } ?>

    I have two problems;

    1 - Where do i put this code in my header.php?

    2 - I think to my navigation bar is called something other than navigation. I think its - menu - but I am not sure.

    And help would be amazing!




  2. Andrew
    Bawk bawk moderator
    Posted 3 years ago #

    The important bit is the PHP, wrap that around your navigation menu.

  3. Northern Badger
    Posted 3 years ago #

    Hi andrew,

    Would you be able to give a little more detail? I am stuck on where exactly i put the code.


    Stuart :)

Topic Closed

This topic has been closed to new replies.

About this Topic