jmasondotnet
Member
Posted 2 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.
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
jmasondotnet
Member
Posted 2 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.
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
jmasondotnet
Member
Posted 2 years ago #
Pete thanks so much for the help. that worked great.