wp-bootstrap-navwalker icon indicating copy to clipboard operation
wp-bootstrap-navwalker copied to clipboard

The new version (2.0.1) doesn't work for me

Open nguyen-tam opened this issue 13 years ago • 3 comments

This bug happens on Wordpress 3.6 screenshot from 2013-08-30 23 08 44

Please take a look at my screenshot. The problem here is wp_nav_menu generate div class="nav navbar-nav" instead of ul class="nav navbar-nav". Here is the full html : screenshot from 2013-08-30 23 09 12

and here is my header.php : screenshot from 2013-08-30 23 09 25

nguyen-tam avatar Aug 30 '13 16:08 nguyen-tam

That is an interesting issue and I had the same problem. It was solved for my be assigning the 'menu_class' => 'nav navbar-nav' which assigns the class to the menu and not the container. I am using the same wp-nav-menu declaration and getting a different result.

nav-walker-sample

To troubleshoot a bit further, is your menu defined in your functions.php file?

register_nav_menus( array(
        'primary' => __( 'Primary Menu', 'THEME NAME' ),
) );

Do you have a menu assigned to the Primary menu in the WP admin?

SideQuestDIY avatar Aug 30 '13 17:08 SideQuestDIY

You're right, I need check the [theme locations] checkbox to Primary Menu. I think you should put it in the readme file .

screenshot from 2013-08-31 08 33 05

Thank you

nguyen-tam avatar Aug 31 '13 01:08 nguyen-tam

I will look into this further, the issues is the arguments for the class names are not passing to the wp_page_menu fallback function as they should by default.

SideQuestDIY avatar Sep 03 '13 07:09 SideQuestDIY