wp-bootstrap / wp-bootstrap-navwalker

A custom WordPress nav walker class to fully implement the Twitter Bootstrap 4.0+ navigation style (v3-branch available for Bootstrap 3) in a custom theme using the WordPress built in menu manager.
https://wp-bootstrap.github.io/wp-bootstrap-navwalker/
GNU General Public License v3.0
3.37k stars 1.94k forks source link

Wp_Bootstrap_Navwalker Don"t Work With Wordpress 4.0 #157

Closed rerraw closed 9 years ago

rerraw commented 9 years ago

some day ago i update my theme from 3.9 to 4.1 then i saw my dropdown menu not work and dont show me any sub menu I read this comment below https://github.com/twittem/wp-bootstrap-navwalker/issues/140

i deleted the display_element function and i replaced $args_children to the $this_children. but my problem not solved.

if anyone can manage for me the clear wp_bootstrap_navwalker.php for me until work with my Wordpress 4.1 Without any problem?

pattonwebz commented 9 years ago

The walker works for me without problem on WP 4.1 (and without deleting the display_element function). Can you post the code you're using to add it to your theme? It'll look something a little like this:

wp_nav_menu( array(
   'menu'       => 'main_menu',
   'depth'      => 2,
   'container'  => false,
    'menu_class' => 'nav',
    'fallback_cb' => 'wp_page_menu',
    //Process nav menu using our custom nav walker
    'walker' => new wp_bootstrap_navwalker())
);
rerraw commented 9 years ago

@pattonwebz thank you for your help and reply the wp_bootstrap_navwalker.php it is work without any problem with version 4.0 and 4.1. but any one use this plugin https://wordpress.org/plugins/bootstrap-shortcodes cause the damage the dropdwon menu for wp_bootstrap_navwalker for version 4.0 i deleted this plugin then solved my problem read this comment also that person occured the same problem for his. https://github.com/twittem/wp-bootstrap-navwalker/issues/111