Use a custom walker, change the content in function start_el()
.
I have written a sample walker you can start with, you have to re-add the classes tough.
Related Posts:
- Changing the Order of Admin Menu Sections?
- Filter wp_nav_menu()
- remove “edit your profile” from admin menu bar
- add custom class to wp_nav_menu using filter hook nav_menu_css_class
- Show just one level of child pages, wp_list_pages woe
- Using filters to change href of nav menu page link
- replace current_page_item class in menu
- Adding attributes to link in wp_nav_menu using custom Walker function
- How to add current, parent, and ancestor menu item IDs to body_class()?
- How to manually add an item to a submenu in a menu generated by wp_nav_menu?
- Walker_Nav_Menu: put custom code between a particular
- Remove navigation from header in custom page template
- How to create a custom menu item
- Change image based on menu item id
- Add Bootstrap dropdown class to a nav menu
- WordPress Add javascript:void(0); to menu link item?
- Search box as a menu item in the nav menu output by wp_nav_menu?
- Making WordPress’ page and menus visible only for logged in users, checking session variables
- How can I put two menus in the same div?
- Add static item to wp_nav_menu
- WordPress – site with 2 stylesheets and more…
- Add nav menu CSS class to body
- Menu Custom link – using relative link when WP is in a subdirectory
- How to add a CSS class to the tooltip on a navigation menu?
- Using Shortcodes in WP-Menus in WP 3.1 (via nav_menu_objects)?
- WooCommerce dynamic menus
- Hide menu item based on user’s custom capability
- Auto add pages to primary menu with functions.php
- Add id to menu items in wp_nav_menu
- Add dynamic Sitemap to footer
- Possible Menu Hack?
- how can i add css class on current page in wordpress wp_nav_menu
- How to rewrite the output of wordpress nav menu?
- Return Page/Post ID’s of Child WP_Nav_Menu items
- WordPress warning: “private_to_published” Deprecated when creating nav with wp_update_nav_menu_item()
- display menus on all page except one?
- two different separate sections on the same site
- how to disable default menu classes
- How to customize submenus isn wordpress theme [closed]
- custom walker nav issue involving ajax
- How to add html attributes to the “ul” html tag with “wp_nav_menu” function?
- Can I have a different menu for each parent page?
- Conditional menu display
- Give child-categories same class (the parent category-slug) as parent in menu list?
- Combine 2 categories in one Menu item
- Wrap list parent in div with wp_nav_menu menu
- WordPress Menu Exchange On Tablet’s Orientation
- How to add a element with walker menu right after begin of the navigation tags?
- Custom Menu not functioning properly
- Using front-page.php need new blog page
- Increase wordpress menu Depth
- How to hide the menu item created by the theme in WordPress admin panel?
- Custom menu walker – remove li tag based on class name
- Hide pages from the main menu
- How to customize the built in menu in wordpress?
- Current author archive in navigation menu
- Adding CSS-class to WordPress Menu in backend
- How to get or know the slug of home.php
- Set first level items to in wp_nav_menu()
- Difficulties filtering manage_nav-menus_columns
- How to create menu spread over four lines including images
- Do not hyperlink menu heading
- Adding conditional classes to wp_get_nav_menu_items
- WordPress menu items automatically becoming empty custom links
- Help with WordPress Custom Nav Walker
- Cannot collapse a responsive menu in WordPress
- Change hover to onclick on menu
- How can I get back the content of a sub-menu
- Only the index.php/homepage open while other pages are not opening
- Why my dropdown menu is effecting main menu?
- Does the Default theme of WordPress like 2016, 2017 and 2019 uses Walker_Nav_Menu Class
- WordPress Menu Navigation links not working
- How to apply individual menu item’s “CSS Classes” to , not ?
- Display_name in menu
- How to access into the description of a sub menu
- how to split vertical menu into two columns using walker nav menu
- Get Sub-Menu Dropdown to Show Over Page Content
- Foundation Scripts not loading (custom theme)
- How to Add Class in
- Menu Details Output in Javascript [closed]
- Get menu items problem
- Can’t add any menu items anymore, server related
- How to display list of child pages with parent in wordpress?
- Show content of subdomain from specific menu-item?
- Update nav menu item position programmatically
- wp_nav_menu – Collapse with PHP
- How can I disable sorting/dragging of a menu item in the custom menu admin?
- How to add or remove borders in navigation menu?
- buddypress slug issues [closed]
- WordPress menu is getting automatically nested
- Sub menu for a (single) page
- WordPress “add to menu” button not working
- Primary menu shortcode name
- register_nav_menus and wp_nav_menu issue, not displaying independent menus
- Convert a custom bootsrap based menu to wordpress nav walker
- How do I get the menu items based on name or ID?
- Menu problem : when add wordpress element in menu it convert into empty custom link
- Add acf custom fields so sub item in menus
- change breakpoint widths for divi theme tablet view
- Problems with the navigation menu