They just use the default markup. You only need to define your own walker class if you’re changing the markup from the default. Believe it or not, but it’s perfectly possible to create menus without Bootstrap!
The only exceptions to the default menu markup is that some of the default themes, like Twenty Nineteen, use the walker_nav_menu_start_el
filter to add SVG social icons to its social links menu, and SVG icons for the dropdown indicators. But this does not involve a custom walker class.
Related Posts:
- Change submenu markup
- Structuring Nav Menu and Background Custom page (Help)
- Adding an Arbitrary Link to the Admin Menu?
- 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
- How do I add nested categories to drop-down menu in twenty-eleven?
- How to add ul class on nav
- 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
- Show menu item description with line breaks
- Remove/Disable “Automatically add new top-level pages to this menu”
- Adding attributes to link in wp_nav_menu using custom Walker function
- Walker_Nav_Menu: put custom code between a particular
- Which settings/options are saved on a theme-basis and how does this affect theme-switching?
- 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
- WordPress Add javascript:void(0); to menu link item?
- wp_nav_menu – page template name as item class
- Sub-Pages only of menu items in current branch using a custom menu
- Does WordPress create mobile menus automatically?
- `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
- Programmatically create and place a nav menu in a theme location?
- Main Menu and Sub Menu Items for Footer
- Get number of root elements in walker class
- How to construct a custom html for submenus
- Create search form in menu as in Twenty Fourteen theme
- Get top items number from wordpress menu
- Why is my menu not ordered properly?
- 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?
- My menu bar dissapeared with autooptimize [closed]
- 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