In need of a secondary menu below the mainmenu
-
Hello!
I am using the themes function for page jumping which kind of limits me how I can add additional items to the menu.
I have other portions of my website that wont be apart of the inline single main page style. How I’d like to accomplish this is just add a second menu that gets displayed below the main. I’d like it to behave just like the main menu does (IE: looks, staying at the top when scrolling down, etc.).I did look up how to do this and began to follow steps here + further research to try to see what I could make work. https://www.templatemonster.com/blog/add-navigation-menus-wordpress-theme/
Below are commented out attempts that I tried one at a time to see how I could get this to work.
Themes header.php<?php elseif ( has_nav_menu( 'primary' ) ) : ?> <div id="site-navigation-wrapper"> <nav id="site-navigation" class="main-navigation" role="navigation"> <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_id' => 'primary-menu', 'fallback_cb' => 'wp_page_menu', 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>', 'walker' => new Pique_Menu(), ) ); ?> </nav><!-- #site-navigation --> <?php /* <nav id="site-navigation2" class="main-navigation" role="navigation"> <?php wp_nav_menu( array( 'theme_location' => 'Secondary', 'menu_id' => 'Secondary', 'fallback_cb' => 'wp_page_menu', 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>', 'walker' => new Pique_Menu(), ) ); ?> </nav><!-- #site-navigation2 --> */ ?> </div> <?php endif; ?> <?php /* <!-- Using the id/classes of the main menu for secondary menu --> <div id="site-navigation-wrapper-2"> <nav id="site-navigation-2" class="main-navigation-2" role="navigation"> <?php wp_nav_menu( array( 'theme_location' => 'Secondary', 'menu_id' => 'Secondary', 'fallback_cb' => 'wp_page_menu', 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>', 'walker' => new Pique_Menu(), ) ); ?> </nav><!-- #site-navigation --> </div> */ ?> </header><!-- #masthead --> <div id="content" class="site-content">
The page I need help with: [log in to see the link]
- The topic ‘In need of a secondary menu below the mainmenu’ is closed to new replies.