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

Fix Multi Level Bootstrap Menu and Open on Mouse Hover

Open Serpentsoft opened this issue 13 years ago • 1 comments

Thanks for awesome work, A. but there's an issue in multi level menu (it's not open) .. replace line: if($args->has_children) { $class_names .= ' dropdown'; } with: if($args->has_children && $depth === 0) { $class_names .= ' dropdown'; } elseif($args->has_children && $depth > 0) { $class_names .= ' dropdown-submenu'; }

B. Hover Dropdown Menu To open menu on hover use (bootstrap-hover-dropdown.js) from (CWSpear) and .. replace line: $atts['data-toggle'] = 'dropdown'; with: $atts['data-hover'] = 'dropdown';

and thanks again for your work and your time .. hope to help

Serpentsoft avatar Sep 09 '13 04:09 Serpentsoft

Hey @Serpentsoft,

Thanks for the feedback! However, Bootstrap 3 does not officially support multi-level dropdowns so it was intentionally removed from this version of the class. If you would like it use multi-level dropdowns I would suggest using Bootstrap 2.3.2 and the legacy version of the walker found here.

https://gist.github.com/twittem/6358588

SideQuestDIY avatar Sep 09 '13 14:09 SideQuestDIY