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
- Remove WordPress Menu Classes and ID with Bootstrap Walker
- Can I change Bootstrap button color?
- What is the difference among col-lg-*, col-md-* and col-sm-* in Bootstrap?
- Customize Bootstrap checkboxes
- Left align and right align within div in Bootstrap
- Vertical Align Center in Bootstrap
- Does bootstrap have builtin padding and margin classes?
- Bootstrap Dropdown menu is not working
- What is sr-only in Bootstrap 3?
- How to set up fixed width for
? - How to change btn color in Bootstrap
- How to remove error about glyphicons-halflings-regular.woff2 not found
- How does the data-toggle attribute work? (What’s its API?)
- How to add hamburger menu in bootstrap
- Adding images to a Bootstrap Carousel with AJAX
- Bootstrap 4 images thumbnail classes
- How to include bootstrap css and js in reactjs app?
- Bootstrap 4 datapicker.js not included
- What does an “&” before a pseudo element in CSS mean?
- Bootstrap NavBar with left, center or right aligned items
- Bootstrap Dropdown menu is not working
- ChangeDate – Date Picker Bootstrap
- Bootstrap Dropdown menu is not working
- How to set up fixed width for
? - Understanding how data-dismiss attribute works in Bootstrap
- How can I center an image in Bootstrap?
- Bootstrap dropdown not working
- bootstrap-datetimepicker for bootstrap 4
- css to make bootstrap navbar transparent
- What is a “meta component” in the context of bootstrap or as a general web design term?
- Bootstrap 4, How do I center-align a button?
- Responsive Bootstrap Jumbotron Background Image
- bootstrap navbar not working correctly
- Changing the width of Bootstrap popover
- Changing the width of Bootstrap popover
- TypeError: $(…).modal is not a function with bootstrap Modal
- Mark error in form using Bootstrap
- How to center vertically and horizontally a div using Bootstrap?
- bootstrap 3 navbar collapse button not working
- How to center content in a Bootstrap column?
- How to center image in carousel
- Bootstrap transparent navbar
- Bootstrap throws Uncaught Error: Bootstrap’s JavaScript requires jQuery
- How to give spacing between buttons using bootstrap
- Bootstrap carousel not sliding
- how to center form using bootstrap 4
- How can I override Bootstrap CSS styles?
- Can Twitter Bootstrap alerts fade in as well as out?
- Onclick on bootstrap button
- Flushing footer to bottom of the page, twitter bootstrap
- How to change the background-color of jumbrotron?
- Placeholder Color Change in Bootstrap
- vertical divider between two columns in bootstrap
- What are these attributes: `aria-labelledby` and `aria-hidden`
- bootstrap 4 row height
- vertical-align with Bootstrap 3
- Bootstrap popover is not working
- Bootstrap change carousel height
- Twitter Bootstrap – add top space between rows
- How to use bootstrap 4 in angular 2?