I think you can use this simple class:
Related Posts:
- Display only page specific sub menu items using Custom Walker
- Add class to top level menu item if it has multiple child levels
- Simple Navigation Walker – Wrapper-class around first sub-menu
- Custom Nav Walker sub-menu HTML construct
- Check if wp_nav_menu items have submenus
- Add div to specific sub-menu
- Nav walker, bootstrap: Display 3rd level items under 2nd level
- Sub-Pages only of menu items in current branch using a custom menu
- How to display dynamic content in start_lvl function
- How to add a submenu toggle button inside all “li” elements that have a submenu?
- Main Menu and Sub Menu Items for Footer
- How to construct a custom html for submenus
- How to add ID attribute to each submenu?
- Change submenu markup
- getting the current sub item out of total sub items in a given dropdown (custom walker)
- How to Add support for sub-menu item description in wordpress?
- Menu walker: how to tell if a sub menu contains submenus?
- Where to place a svg chevron down in my custom walker?
- Displaying a part of a menu containing the page the user is currently viewing and only it’s immediate children
- Conditional Nav Menu Inside Nav Menu Across Multisite Sites
- Split up wp_nav_menu with custom walker
- Error “Trying to get property of non-object” with Custom Walker for wp_nav_menu
- how to create a menu with all sub categories?
- WordPress Menu Custom Walker Class
- Add a .last class to the last in each ul.sub-menu
- wp_nav_menu() loses ‘current-menu-*’ classes on single product page within category
- Custom nav walker with different output depending on depth
- How to make pages metabox display all hierarchy in menu admin?
- Bar separated navigation by extending Walker_Page
- Output the aria-labelledby parameter for a nav menu child
- Customizing a walker menu class
- How to remove trailing tags from wp_nav_menu walker
- How to add parent element’s title to nav menu’s child?
- Custom Walker for Walker_Nav_Menu
- Custom Walker anchor tag not inheriting attributes
- Check what “type” a menu item is
- Create self-populating menu and add extra divs to the menu layout
- Add custom text to menu
- Menus like a CMS
- Use wp_nav_menu to display ALL pages
- next_post_link() on custom menu structure
- Third level navigation class
- Get top items number from wordpress menu
- How to include a third level with wp_get_nav_menu_items function
- wp_nav_menu() with multiple Class
- add span class and i tag inside wp_nav_menu link anchor tag
- Schedule Page to Menu [duplicate]
- How do you manage large menu hierarchies in WP?
- Add within the output of
- Trying to Create Menu in WordPress
- Hierarchical menu nesting problem with jQuery targetting
- Sub Menu does not display using Nav Walker
- Is this format possible with a custom Nav Walker class?
- Get Menu Name inside walker
- Add code to WordPress menu items by class
- WordPress Menu Walker: add #hashes to child page links (only)
- WordPress Walker – Group two items?
- Where to implement custom walker class?
- How do you add a around the second level of a Menu?
- How to customize submenus isn wordpress theme [closed]
- Dynamic_sidebar inside wp_nav_menu
- How to add attribute in menu code
- Can I have a different menu for each parent page?
- How Do I Add Images To Main Navigation Menu
- Walker menu not displaying at all
- Wrap list parent in div with wp_nav_menu menu
- How to add a element with walker menu right after begin of the navigation tags?
- WordPress Nav Walker – Top menu link with dropdown link not clickable (dropdown opens)
- Add custom class to li element which has children
- Custom menu walker – remove li tag based on class name
- Show Sidebar Menu Subpages When Clicking Parent
- Add menu headings to WordPress sub menus
- Removing Submenu from Menu
- Walker_Nav_Menu creating too many closing tags?
- WordPress custom menu can’t show 3. level submenu
- Help with WordPress Custom Nav Walker
- Why is my navigation in my onepage not working?
- WordPress menu walker – help to add custom class for each submenu
- Need help with Walker_Nav_Menu class
- why are my walker menu is showing like this?
- Bootstrap Theme Migrated to WordPress
- What is inside in $item in start_el function in Walker_Nav_Menu class
- Creating navigation out of specific IDs and their children?
- Add active class to wp_nav_menu
- Classes CSS (Optional) – how do I reference this in php?
- Product categories are mixed when creating menu
- how to create pages and link them to a menu
- How to separate sub-menu output and keep associated with parent
- Show post titles within WordPress bootstrap Dropdown menu
- Add parent link to its submenu
- Count Level 1 Childs for Custom Nav Walker WordPress
- Show Child of Parent Page including all other parents
- Need direction on a seemingly complex menu walker for automatically inserting a parent link li in it’s submenu ul
- Display all submenus
- Adding Sub Menu In a theme which Do not have Menu Options
- how to make a walker to this (in bootstrap, i try but not work)
- Custom navigation / menu output (walker?)
- What is the best way to incorporate responsive dropdown navigation menu into custom theme?
- Using walker to display all menu branches at once?
- Give custom class names to WP nav sub-menu