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:
- Split up wp_nav_menu with custom walker
- Custom Nav walker display current menu item children, or siblings on no children
- Add a custom walker to a menu created in a widget
- Using a menu walker add a custom item at the end of the menu’s items
- Error “Trying to get property of non-object” with Custom Walker for wp_nav_menu
- 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
- WordPress Menu Custom Walker Class
- How to create this custom menu walker?
- Call custom field into menu item
- add span class inside wp_nav_menu link anchor tag
- Add class to top level menu item if it has multiple child levels
- Determine if a navigation item has children
- How do I pass an argument to my custom walker?
- Simple Navigation Walker – Wrapper-class around first sub-menu
- Custom Nav Walker menu – Display children count
- Add Page ID class to nav menu items
- Using string instead of object class instantiation on the walker argument breaks wp_nav_menu
- Pass a parameter to a menu walker
- Adding attributes to link in wp_nav_menu using custom Walker function
- Walker_Nav_Menu: put custom code between a particular
- Show top-level parent with submenu menu walker
- Adding a class (arrows) to main menu links that have children?
- Custom nav walker with different output depending on depth
- Adding html elements to wp nav menu
- Bar separated navigation by extending Walker_Nav_Menu
- Bar separated navigation by extending Walker_Page
- 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
- start_lvl on Walker is not working
- Customizing a walker menu class
- Add div to specific sub-menu
- How to add ID and class in nav menu walker?
- wp_nav_menu custom walker – child items
- How to remove trailing tags from wp_nav_menu walker
- How to add parent element’s title to nav menu’s child?
- 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
- Custom Walker anchor tag not inheriting attributes
- Indirect modification of overloaded property WP_Post::$classes has no effect
- Benefits of using Nav Walker?
- Check what “type” a menu item is
- Use walker for specific menu, or avoid use of walker
- How to display dynamic content in start_lvl function
- Getting post content within wp_nav_walker
- Add custom text to menu
- has_children in custom nav_walker
- How to add a tag to wp_nav_menu in a child theme
- Adding post excerpt into navigation menu
- Counting top level items in a custom menu walker
- Use wp_nav_menu to display ALL pages
- Third level navigation class
- Editing WordPress Nav Menu Walker
- How to add a submenu toggle button inside all “li” elements that have a submenu?
- 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
- Get top items number from wordpress menu
- add span class and i tag inside wp_nav_menu link anchor tag
- How to Overwrite/Customize wp-admin/nav-menus.php in WordPress
- 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
- How do I separate link levels in a custom menu walker?
- Add within the output of
- Getting menu items like get_pages
- 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
- 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
- Sub Menu does not display using Nav Walker
- Is this format possible with a custom Nav Walker class?
- Put class on instead li
- walker – 0 level on submenu formatting
- Get Menu Name inside walker
- Determine the last child of the parent menu WP Nav Walker
- Create a MegaMenu using a walker and the start_lvl function
- WordPress Menu Walker: add #hashes to child page links (only)
- WordPress Walker – Group two items?
- Difference between walker class and basic php
- Where to implement custom walker class?
- custom walker class
- Custom navigation structure with walker class
- Navigation doesn’t render when wp is hosted
- CSS_Menu_Walker not showing on mobile view?
- wp_nav_menu add class to child item with sub child
- Change submenu markup
- getting the current sub item out of total sub items in a given dropdown (custom walker)
- How do you add a around the second level of a Menu?
- How to use a start_el variable in start_lvl