WordPress.org

Ready to get started?Download WordPress

Forums

Remove navigation bar a from single page (3 posts)

  1. bassmanstu
    Member
    Posted 1 year 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!

    Cheers,

    Stuart

    http://www.stuartjnelson.com/log-in/

  2. Andrew
    Forum Moderator
    Posted 1 year ago #

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

  3. bassmanstu
    Member
    Posted 1 year ago #

    Hi andrew,

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

    Cheers,

    Stuart :)

Topic Closed

This topic has been closed to new replies.

About this Topic