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
- 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
- Add a .last class to the last in each ul.sub-menu
- 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
- How to make pages metabox display all hierarchy in menu admin?
- Bar separated navigation by extending Walker_Page
- Customizing a walker menu class
- How to remove trailing tags from wp_nav_menu walker
- How to add parent element’s title to nav menu’s child?
- 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
- Walker class conditional based on parent menu item label or custom css class
- 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
- Sticky Header in WordPress using BootstrapWP theme [closed]
- Walker Class – Check if menu item has description and if so add class to li
- How to add attribute in menu code
- How to remove dropdown from wp_nav_menu
- remove class “sub-menu” from wordpress drop down menu
- Add a submenu to wp_nav_menu
- Walker menu not displaying at all
- wp_nav_menu not displaying the right way
- sub menu link is not working
- wp_get_archives doesn’t take effect from css or html
- Show Sidebar Menu Subpages When Clicking Parent
- How can I make wp_nav_menu() support tags?
- Add menu headings to WordPress sub menus
- Adding a tag to wp_nav_menu
- cannot get global $menu value in form request
- Show Sub Menu on click and not hover
- Why is my navigation in my onepage not working?
- WordPress menu walker – help to add custom class for each submenu
- Need help with Walker_Nav_Menu class
- why are my walker menu is showing like this?
- Bootstrap Theme Migrated to WordPress
- What is inside in $item in start_el function in Walker_Nav_Menu class
- How to use Bootstrap Navbar in wordpress Nav Menu
- Bootstrap Nav Walker Sub Menu Image
- Creating navigation out of specific IDs and their children?
- Add active class to wp_nav_menu
- Product categories are mixed when creating menu
- How to separate sub-menu output and keep associated with parent
- Show post titles within WordPress bootstrap Dropdown menu
- Add parent link to its submenu
- Count Level 1 Childs for Custom Nav Walker WordPress
- Show Child of Parent Page including all other parents
- Need direction on a seemingly complex menu walker for automatically inserting a parent link li in it’s submenu ul
- Display all submenus
- Adding Sub Menu In a theme which Do not have Menu Options
- how to make a walker to this (in bootstrap, i try but not work)
- Custom navigation / menu output (walker?)