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
- What is the difference among col-lg-*, col-md-* and col-sm-* in Bootstrap?
- Understanding how data-dismiss attribute works in Bootstrap
- Onclick on bootstrap button
- How to change the background-color of jumbrotron?
- Bootstrap Columns Not Working
- Set bootstrap modal body height by percentage
- Bootstrap Collapse not Collapsing
- Custom Walker: how to get ID in function start_lvl
- Split up wp_nav_menu with custom walker
- Display custom post type and custom fields within a Bootstrap Carousel
- Strict Standards Error bootstrap navwalker
- WordPress Menu Custom Walker Class
- Extend walker class with custom post types [closed]
- Bootstrap drop down menu with wp_nav_menu
- Custom nav walker with different output depending on depth
- Add Thumbnail to wp_list_categories()
- Editing or filtering the output of the Genesis navigation
- Make compatible custom menu widget for Twitter Bootstrap
- Loop through Navbar, Output Icons
- Custom Walker anchor tag not inheriting attributes
- Check what “type” a menu item is
- Adding ‘active’ class to custom taxonomies using walker in functions.php
- Create self-populating menu and add extra divs to the menu layout
- How do I enqueue a js file in functions.php for a if lt IE 9 statement? [duplicate]
- Bootstrap Drop Down menu is not working
- Add within the output of
- How to use in Block Editor – react-bootstrap?
- create bootstrap columns inside editor group block
- Is this format possible with a custom Nav Walker class?
- Modal suddenly disapearring [closed]
- Can you target a widget_class in a register_sidebar?
- Using Select HTML in Bootstrap Popovers
- Using twitter bootstrap in a theme
- How Do I Add Images To Main Navigation Menu
- Google yolo one tab signup plugin avilable in wordpress? [closed]
- How to add a element with walker menu right after begin of the navigation tags?
- Custom menu walker – remove li tag based on class name
- Bootstrap grid system is not working in my WordPress theme
- WordPress keeps showing mobile version on Internet Explorer
- Get the featured image url of clicked post
- Use of Bootstrap nav in a page
- wp_dropdown_categories() show elements checkbox
- Bootstrap within shortcode
- Help with WordPress Custom Nav Walker
- Ajax call undefined index
- Bootstrap Nav Walker Sub Menu Image
- change background image on scroll
- Add active class to wp_nav_menu
- Displaying a specific sub-category’s posts from wp_query
- How To Get WordPress To Pickup Boostrap’s CSS File?
- Add parent link to its submenu
- Walker_Nav_Menu Add Strings and Class Name
- How do I get my theme scripts to load in a custom theme built from Bootstrap
- Bootstrap collapse in custom WordPress widget
- Need direction on a seemingly complex menu walker for automatically inserting a parent link li in it’s submenu ul
- change the icon of a custom post type in WordPress to use twitter boostrap
- I am extending Walker_Nav_Menu: How can I get the number of children elements of the current item?
- How to make this splash page responsive
- Navigation won’t update to show full path to single post
- Enueue script for bootstrap
- Convert a custom bootsrap based menu to wordpress nav walker