• Hi,

    I’m making my first theme based on Underscores source. After adding a secondary menu to my <nav> it does not appear in the mobile menu.
    My <nav> looks like this:

    <nav id="site-navigation" class="main-navigation" role="navigation">
    	<h1 class="menu-toggle"><?php _e( 'Menu', 'raina-kuryba' ); ?></h1>
    	<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'raina-kuryba' ); ?></a>
    	<?php wp_nav_menu( array('menu' => 'Portfolio' )); ?>
    	<?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
    </nav><!-- #site-navigation -->

    After poking around in navigation.js I discovered that by changing menu = container.getElementsByTagName( 'ul' )[0]; [0] value to [1] it’s possible to select the menus. But how do I display both?

  • The topic ‘How to add a custom menu so it appears in mobile toggle menu area?’ is closed to new replies.