I solved this problem. follow these instructions…..
-
Add script
(function($){ $(document).ready(function(){ $('ul.dropdown-menu [data-toggle=dropdown]').on('click', function(event) { event.preventDefault(); event.stopPropagation(); $(this).parent().siblings().removeClass('open'); $(this).parent().toggleClass('open'); }); }); })(jQuery);
2.Remove && $depth === 0
from this line: if ( $args->has_children && $depth === 0 ) in wp_bootstrap_navwalker.php file.
See the screenshot here.
Related Posts:
- Main Menu and Sub Menu Items for Footer
- Nav walker bootstrap: Display 3rd level and 4th level in dropdown menu
- Display only page specific sub menu items using Custom Walker
- Multi Level Bootstrap Navigation Menu in WordPress
- Add class to top level menu item if it has multiple child levels
- Simple Navigation Walker – Wrapper-class around first sub-menu
- Output the aria-labelledby parameter for a nav menu child
- Custom Nav Walker sub-menu HTML construct
- Check if wp_nav_menu items have submenus
- Add div to specific sub-menu
- Sub-Pages only of menu items in current branch using a custom menu
- How to display dynamic content in start_lvl function
- How to add a submenu toggle button inside all “li” elements that have a submenu?
- How to construct a custom html for submenus
- How to add ID attribute to each submenu?
- WordPress Walker – Group two items?
- Change submenu markup
- getting the current sub item out of total sub items in a given dropdown (custom walker)
- How to Add support for sub-menu item description in wordpress?
- How can I creat custom menu with bootstrap
- WordPress + Bootstrap: Replace primary navigation menu on mobile?
- Stuck while adding bootstrap navwalker class
- Menu walker: how to tell if a sub menu contains submenus?
- Where to place a svg chevron down in my custom walker?
- Displaying a part of a menu containing the page the user is currently viewing and only it’s immediate children
- Conditional Nav Menu Inside Nav Menu Across Multisite Sites
- Broken drop down menu using Bootstrap and navwalker class
- nav tag wrapping around dropdown
- WordPress nav Walker – Bootstrap 5.2.3 – submenu not opening
- Split up wp_nav_menu with custom walker
- Error “Trying to get property of non-object” with Custom Walker for wp_nav_menu
- how to create a menu with all sub categories?
- WordPress Menu Custom Walker Class
- Bootstrap drop down menu with wp_nav_menu
- wp_nav_menu() loses ‘current-menu-*’ classes on single product page within category
- Custom nav walker with different output depending on depth
- Customizing a walker menu class
- How to add ID and class in nav menu walker?
- How to remove trailing tags from wp_nav_menu walker
- how to automatically generate hierarchical menus from hierarchy of pages?
- Handling complex multi-level architecture / menu for large site
- Add custom text to menu
- Menus like a CMS
- How to add a tag to wp_nav_menu in a child theme
- How can I remove data-target=”#” from bootstrap dropdown menu?
- Use wp_nav_menu to display ALL pages
- Third level navigation class
- Get top items number from wordpress menu
- wp_nav_menu() with multiple Class
- add span class and i tag inside wp_nav_menu link anchor tag
- How to Overwrite/Customize wp-admin/nav-menus.php in WordPress
- How do you manage large menu hierarchies in WP?
- wp_list_pages() but only show children on the branch you are on
- Trying to Create Menu in WordPress
- Hierarchical menu nesting problem with jQuery targetting
- Sub Menu does not display using Nav Walker
- Get Menu Name inside walker
- WordPress Menu Walker: add #hashes to child page links (only)
- Where to implement custom walker class?
- custom walker class
- Dynamic_sidebar inside wp_nav_menu
- Can I have a different menu for each parent page?
- How Do I Add Images To Main Navigation Menu
- Walker menu not displaying at all
- Wrap list parent in div with wp_nav_menu menu
- How to add a element with walker menu right after begin of the navigation tags?
- WordPress Nav Walker – Top menu link with dropdown link not clickable (dropdown opens)
- wp_get_archives doesn’t take effect from css or html
- Add custom class to li element which has children
- Custom menu walker – remove li tag based on class name
- Removing Submenu from Menu
- Walker_Nav_Menu creating too many closing tags?
- WordPress custom menu can’t show 3. level submenu
- Help with WordPress Custom Nav Walker
- Why is my navigation in my onepage not working?
- Change hover to onclick on menu
- Need help with Walker_Nav_Menu class
- why are my walker menu is showing like this?
- having a page in multi sub-menu and match current-menu-item
- Why my dropdown menu is effecting main menu?
- Does the Default theme of WordPress like 2016, 2017 and 2019 uses Walker_Nav_Menu Class
- Bootstrap Nav Walker Sub Menu Image
- Add active class to wp_nav_menu
- Output existing wp_nav_menu with a custom walker
- How to access into the description of a sub menu
- how to split vertical menu into two columns using walker nav menu
- Adding span to a particular text in an menu item
- Custom menu with Walker class – what should the $db_fields be?
- Has there been any improvements to wp’s menu handling?
- Add parent link to its submenu
- How can I edit submenu headings using wp_nav_menu walker?
- Show Child of Parent Page including all other parents
- Can’t add optional class to menu item when using Walker_Nav_Menu
- How to display list of child pages with parent in wordpress?
- nav_menu: how to force a subpage switching on the parent menu
- Determine if a navigation item has children
- wp_nav_menu – Collapse with PHP
- custom walker to add iconfont to wp_nav_menu
- WordPress menu is getting automatically nested
- Give custom class names to WP nav sub-menu