[resolved] add secondary navigation (2 posts)

  1. emilybrook
    Posted 2 years ago #

    How would I go about adding a secondary navigation menu located in the banner?

  2. Anthony Hortin
    Theme Author

    Posted 2 years ago #

    First up, you'd need to register your secondary navigation in functions.php, using register_nav_menus(). You'll see the existing nav in there, towards the top of this file.

    You'd then need to update header.php to add the menu within the banner. Something like this should do the trick...

    <div id="bannercontainer">
       <div class="banner row">
          <nav id="secondary-site-navigation" class="secondary-navigation" role="navigation">
             <?php wp_nav_menu( array( 'theme_location' => 'secondary', 'menu_class' => 'secondary-nav-menu' ) ); ?>
          </nav> <!-- /.site-navigation.main-navigation -->
       </div> <!-- /.banner.row -->
    </div> <!-- /#bannercontainer -->

    * You'd need to define that theme_location when you register your menu and obviously add in the appropriate styles to style.css

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic