I’m not quite sure what you mean. The wp_nav_menu() will automatically use the Walker_Nav_Menu Class by default. It’s not necessary to use a custom walker for a drop down menu ( or submenu ). The wp_nav_menu() accepts a few arguments and one of those is depth. If the depth argument is set to 1 then it will limit the menu to top level items.
Really, it’s up to your theme to use CSS and style these dropdown menus so that they are functional.
Related Posts:
- Walker to add Bootstrap markup for wp_list_pages
- What is a good resource to find out about making custom walkers?
- Comment Walker vs. Comment Callback
- Why is my menu order not working with wp_nav_menu?
- Incrementing a class in a custom walker
- Adding ul class with wp_list_categories Custom Walker
- Output the aria-labelledby parameter for a nav menu child
- Nav walker, bootstrap: Display 3rd level items under 2nd level
- how to conditionally add attributes to start_lvl() function?
- Menu location by menu id or menu ID in start_el() Walker
- Rendering of custom walker menu function not working properly
- Adding dynamic content to end_lvl in Walker Class [closed]
- Walker gives additional taxonomy name?
- $args->has_children not working with start_el()
- Main Menu and Sub Menu Items for Footer
- Limit Custom Crawler to front end only
- Bootstrap Navwalker not displaying
- ol children instead of ul children
- WordPress Walker – Group two items?
- Extend Walker Class for 2 checkbox taxonomy selection?
- using walker menu to add classes and attributes to elements
- Custom megameu walker need improvement
- List pages to show only Whitelisted sub pages
- Get Parent List Class for Child Pages Using Walker
- Manual use of Walker_Category class
- How do I get_the_content in a custom walker?
- Creating Custom navigation in wordpress with sub menus
- Set custom id to list element walker custom function
- Page thumbnail doesn’t display on navigation
- How to remove ul & li from wordpress custom walker?
- Stuck while adding bootstrap navwalker class
- Walker_Category – not reliably saving
- Custom Walker menu depth opening problem
- How to append something before final tag in walker class?
- Using wp_list_categories or other function inside a menu walker?
- Help with output of post classes using apply_filters
- Broken drop down menu using Bootstrap and navwalker class
- Custom walker pulldown display current page
- WordPress nav Walker – Bootstrap 5.2.3 – submenu not opening
- Nav walker bootstrap: Display 3rd level and 4th level in dropdown menu
- How to change btn color in Bootstrap
- bootstrap-datetimepicker for bootstrap 4
- Mark error in form using Bootstrap
- How to use bootstrap 4 in angular 2?
- What is the difference between Bootstrap .container and .container-fluid classes?
- how to do a line break in Bootstrap 3.3.7
- How can I make Bootstrap columns all the same height?
- Responsive Canvas in Bootstrap column?
- Best way to include Bootstrap in WordPress
- start_lvl Ignored in Custom walker_nav_menu
- Does Extending Multiple Nav_Menu_Walkers Allow Nested Menus?
- Display only page specific sub menu items using Custom Walker
- adding some custom html code to the wp_nav_menu function
- Pass a parameter to a menu walker
- How do I properly register bootstrap JavaScript into WordPress functions.php?
- Load custom css after bootstrap
- Rewriting WordPress Gallery Shortcode with Bootstrap Carousel
- Why isn’t “background-image: url”working with Bootstrap carousel on WP?
- How to install bootstrap in child theme
- Run a filter when a walker runs
- Customizing comments pagination for bootstrap
- WordPress bootstrap menue with 3. level
- Use menu class in walker function
- Walker_Nav_Menu doesn’t work in wp_page_menu_args filter
- Block-based Widgets Editor – how to enable a title
- Layout using Bootstrap not aligning correctly
- Walker class conditional based on parent menu item label or custom css class
- Put class on instead li
- Each Slide Has Something Missing In Carousel
- Screen Options & Help Buttons not working when including Bootstrap Css
- custom walker class
- Page content loading issue using Walker_Nav_Menu
- How do I style the first two posts of a loop
- Use custom walker to add taxonomy terms to main nav menu
- Sticky Header in WordPress using BootstrapWP theme [closed]
- Walker Class – Check if menu item has description and if so add class to li
- Help with walker for nav
- Why is only the first operation run in my loop – except for on the last repeat? [closed]
- How can I apply filters in my class that extends Walker_Nav_Menu?
- Modify YouTube Embed Code to fit theme
- Displaying Nav Menu
- Posts are not looping through correctly
- Responsive menu on genesis theme [closed]
- Modifying navigation menu classes with a Walker
- changing the labels inside appearance -> menus for some for the fields
- Bootstrap menu – make menu entries with submenu not clickable
- Gutenberg blocks shortcodes compatibility
- Does the Default theme of WordPress like 2016, 2017 and 2019 uses Walker_Nav_Menu Class
- Bootstrap tabs are not being clicked in WordPress loop
- how to split vertical menu into two columns using walker nav menu
- Bootstrap code acting weird on wordpress
- Problems with the WordPress loop [closed]
- Restrict days in bootstrap datepicker using checkboxes in submenu
- Custom menu with Walker class – what should the $db_fields be?
- Should I paste CDN links in a JS file or use a Bootstrap CDN plugin?
- Can’t add optional class to menu item when using Walker_Nav_Menu
- wp_nav_menu – Collapse with PHP
- custom walker to add iconfont to wp_nav_menu
- How To add li class and a class wp_nav_menu() with bootstrap 5 navbar?
- Starter Bootstrap and Custom Fonts