WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Nav Menu - Hide all but top page (5 posts)

  1. jmasondotnet
    Member
    Posted 4 years ago #

    Is there a way to hide all but the top page in the Nav Menu, I am using a F&Q plugin and when you hover over the F&Q page link in the nav menu all the questions pop up. I know there is a way to do it, I just can not seem to find the right location and code to add.

  2. peterjharrison
    Member
    Posted 4 years ago #

    Hi jmasondotnet,

    It will depend on what function your theme is using to generate your menu. Can you tell us what theme you are using?

    Regards
    Pete

  3. jmasondotnet
    Member
    Posted 4 years ago #

    I am using the 2010 theme, I have the site up at http://www.fiber4dunnellon.info if you wanted to take a look at it.

  4. peterjharrison
    Member
    Posted 4 years ago #

    Hi jmasondotnet,

    Try replacing line 73 of your header.php file in your theme with the following line of code.

    <?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary', 'depth' => '1' ) ); ?>

    Cheers
    Pete

  5. jmasondotnet
    Member
    Posted 4 years ago #

    Pete thanks so much for the help. that worked great.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags