Closed RvMouche closed 9 years ago
Not sure if this is a bug or I'm doing something wrong, but I added this code to functions.php
// Bootstrap Navigation Walker include get_template_directory() . '/external/wp-bootstrap-navwalker/wp_bootstrap_navwalker.php'; register_nav_menus( array( 'primary' => __( 'Hamburger Menu', 'BasicBootstrap' ), 'secondary' => __( 'Top Menu', 'BasicBootstrap' ), ) );
and this to declare the menu:
<?php /* Secondary navigation */ wp_nav_menu( array( 'menu' => 'secondary', 'depth' => 2, 'container' => false, 'menu_class' => 'nav navbar-nav top-menu', 'walker' => new wp_bootstrap_navwalker()) ); ?>
But it still loads another menu, that I called Hamburger menu, how original right? Do you have any idea why?
Stupid... Needed to use name instead of location. Closed
Not sure if this is a bug or I'm doing something wrong, but I added this code to functions.php
and this to declare the menu:
But it still loads another menu, that I called Hamburger menu, how original right? Do you have any idea why?