No need for a custom walker – it’s controlled with the depth
parameter. At the moment, you’re only showing 2 levels of menus – but you need to set this to 3
!
This, however, will only control what is being output. As for the user clicking, hovering or otherwise to actually see the menu, you’ll need to apply your own formatting (usually just CSS, although you could use JavaScript too) on the frontend in order to affect the display. WordPress doesn’t handle this for you by default as its up to the theme.
Related Posts:
- Using a menu walker add a custom item at the end of the menu’s items
- How to count nav menu items?
- How Does The Walker Class Work?
- Does Extending Multiple Nav_Menu_Walkers Allow Nested Menus?
- How does a minimal menu walker look like?
- Display only page specific sub menu items using Custom Walker
- How to create this custom menu walker?
- Call custom field into menu item
- Add class to top level menu item if it has multiple child levels
- How do I pass an argument to my custom walker?
- Simple Navigation Walker – Wrapper-class around first sub-menu
- Add Page ID class to nav menu items
- Pass a parameter to a menu walker
- Check if wp_nav_menu items have submenus
- start_lvl on Walker is not working
- Nav walker, bootstrap: Display 3rd level items under 2nd level
- wp_nav_menu – page template name as item class
- Sub-Pages only of menu items in current branch using a custom menu
- `start_el` depth argument in custom nav walker always evaluates to zero
- Benefits of using Nav Walker?
- Use walker for specific menu, or avoid use of walker
- has_children in custom nav_walker
- Adding post excerpt into navigation menu
- Counting top level items in a custom menu walker
- Editing WordPress Nav Menu Walker
- How can I add divs or change li in the submenu of the menu_nav
- Main Menu and Sub Menu Items for Footer
- Get number of root elements in walker class
- How to construct a custom html for submenus
- Remove current class from sub menu items
- View h2 content tags of a page in sub menu
- Change an li class name in a wordpress custom menu walker
- Use menu class in walker function
- Custom walker nav – Add sequential number as class
- Getting menu items like get_pages
- Walker class conditional based on parent menu item label or custom css class
- WP Menu Walker – How to know total depth from inside the start_lvl() method
- How to add ID attribute to each submenu?
- How to create this Custom Walker Menu
- Put class on instead li
- Determine the last child of the parent menu WP Nav Walker
- Create a MegaMenu using a walker and the start_lvl function
- custom walker class
- Navigation doesn’t render when wp is hosted
- wp_nav_menu add class to child item with sub child
- Change submenu markup
- How to use a start_el variable in start_lvl
- Page content loading issue using Walker_Nav_Menu
- Split into two seperate unordered lists with custom walker
- creating a custom walker class
- Walker Class – Check if menu item has description and if so add class to li
- How to remove dropdown from wp_nav_menu
- Wrapping link and .sub-menu with wp_nav_menu
- Show children (sub-navigation) of active menu item only
- wp_nav_menu check both hierarchy fail?
- Adding a unique ID to each sub-menu
- Walker Class: Output Parent Description and Featured Image right after sub-menu?
- Modifying the walker to insert parent’s description above sub menus
- How to add scroll IDs to WordPress menu anchors
- wp_list_pages Hierarchical Help
- custom walker class for own menu?
- How to get current pages menu text?
- Costum walker with sub menu item count
- How do I add 3rd level of dropdowns to wp_nav_menu array?
- Add attributes to wrapper html generated by wp_nav_menu
- How to include second layer sub menu to Walker Nav?
- url_to_postid method in walker_nav navigation menu causing exceptionally high TTFB
- How can I creat custom menu with bootstrap
- Structuring Nav Menu and Background Custom page (Help)
- Stuck while adding bootstrap navwalker class
- Multi-Level Nav Bar
- Adding additional html to the end of the root level in a custom nav walker
- wordpress custom menu – show parents, siblings, children depending on depth
- Nav_walker add id to dropdown ul
- Change markup for just 2nd list element in custom Walker menu
- Menu walker: how to tell if a sub menu contains submenus?
- WordPress customizing a walker menu class
- How to remove a sub-menu using walker hooks/filters without relying on a custom walker?
- how do you create this customize menu using wp_nav_menu function?
- Parent link need to go first child submenu
- Displaying a part of a menu containing the page the user is currently viewing and only it’s immediate children
- Custom wordpress submenu
- Walker or wp_get_nav_menu_items VS jQuery
- WPML CMS Nav and Custom Nav_Walker Undefined Property Notices [closed]
- Conditional Nav Menu Inside Nav Menu Across Multisite Sites
- How to add odd and even classes to all nav links through walker?
- Output sort number in wp menu list item?
- Cannot add home page url to menu with #
- Is it possible to separate all submenu items?
- Check in walker if current page is descendant
- Specific Page that convert Hyperlink to anchor in nav menu
- Add dynamic content block to nav section generated by custom walker
- Customize Walker_nav_menu to show posts if item is category
- How can I modify wp_nav_menu with walker?
- Walker for menus
- Use wp_nav_menu to dynamically generate child menus
- Broken drop down menu using Bootstrap and navwalker class
- how can i get the page_ID in nav li [closed]
- Using walker to display all menu branches at once?
- WordPress nav Walker – Bootstrap 5.2.3 – submenu not opening