You need create additional field for menu item. Because if you will use class field – you will block adding additional class to links.
But if it’s ok – create <i class="$your_class"></i>
before link title. And @Dilip Gupta gave solution to you.
Related Posts:
- CSS_Menu_Walker not showing on mobile view?
- How Do I Add Images To Main Navigation Menu
- Stuck while adding bootstrap navwalker class
- Custom Nav walker display current menu item children, or siblings on no children
- Add a custom walker to a menu created in a widget
- Error “Trying to get property of non-object” with Custom Walker for wp_nav_menu
- add span class inside wp_nav_menu link anchor tag
- Custom Nav Walker menu – Display children count
- Using string instead of object class instantiation on the walker argument breaks wp_nav_menu
- 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?
- Adding html elements to wp nav menu
- Bar separated navigation by extending Walker_Nav_Menu
- Output the aria-labelledby parameter for a nav menu child
- Custom Nav Walker sub-menu HTML construct
- Add div to specific sub-menu
- wp_nav_menu custom walker – child items
- How to remove trailing tags from wp_nav_menu walker
- How to change Twenty Seventeen theme’s navigation bar location?
- Indirect modification of overloaded property WP_Post::$classes has no effect
- WordPress – site with 2 stylesheets and more…
- Add nav menu CSS class to body
- Getting post content within wp_nav_walker
- How to add a submenu toggle button inside all “li” elements that have a submenu?
- Add class active to static menu
- How do I separate link levels in a custom menu walker?
- Add within the output of
- Add CSS to head depending on nav menu walker
- wp_list_pages() but only show children on the branch you are on
- wp_nav_menu not working [closed]
- Is this format possible with a custom Nav Walker class?
- Static page to one page- menu inactive items highlighted
- WordPress Menu Walker: add #hashes to child page links (only)
- WordPress Walker – Group two items?
- Difference between walker class and basic php
- Custom navigation structure with walker class
- How do you add a around the second level of a Menu?
- How to add class to parent a tag with a sub menu
- CSS Classes (optional) on menu is not showing
- Help with walker for nav
- Dynamic_sidebar inside wp_nav_menu
- How to style a specific nav menu item?
- Why is only the first operation run in my loop – except for on the last repeat? [closed]
- My Temptation theme is showing two of the same menu at the top. How do I remove the one that the theme comes with? Please help! [closed]
- WordPress + Bootstrap [closed]
- 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)
- Displaying Nav Menu
- Navigation menu not visible (contrast issue) on home page
- Add custom class to li element which has children
- Full screen nav menu block with avada theme
- Custom menu walker – remove li tag based on class name
- Hide pages from the main menu
- Show Sidebar Menu Subpages When Clicking Parent
- changing the labels inside appearance -> menus for some for the fields
- Controlling sub-menu within sub-menu
- Walker_Nav_Menu creating too many closing tags?
- Custom menu styling
- Styling issue with custom menus and sub menus
- Hook or callback when wp_nav_menu() has completed
- Help with WordPress Custom Nav Walker
- Menu items not clickable
- How to add CSS class to and and id in a nav menu with code?
- Change hover to onclick on menu
- Add/remove image from navigation bar
- Does the Default theme of WordPress like 2016, 2017 and 2019 uses Walker_Nav_Menu Class
- How to create a mobile menu full screen overlay using Understraps Bootstrap 4 theme
- Where to place a svg chevron down in my custom walker?
- Output existing wp_nav_menu with a custom walker
- how to split vertical menu into two columns using walker nav menu
- Extending Walker_Nav_Menu in wp_nav_menu List of Empty Items
- Adding span to a particular text in an menu item
- Get Sub-Menu Dropdown to Show Over Page Content
- How can I make menu items into two seperate buttons with different functions?
- Responsive Dropdown Menu
- Custom menu with Walker class – what should the $db_fields be?
- Adding two same css class on menu item
- Count Level 1 Childs for Custom Nav Walker WordPress
- Two questions about CSSing inside the menus
- How can I edit submenu headings using wp_nav_menu walker?
- Always show wordpress submenu on responsive header menu
- Can’t add optional class to menu item when using Walker_Nav_Menu
- jQuery not working when used with wordpress menu
- Theme: Twenty Thirteen Mobile Sliding Menu Doesn’t Bump Content Down
- Can’t style custom menu
- Determine if a navigation item has children
- wp_nav_menu – Collapse with PHP
- custom walker to add iconfont to wp_nav_menu
- Specifying Class style for Menu
- Menu Underline shows without Hover after adding subitems
- How to add or remove borders in navigation menu?
- Keeping my Sub Menu open when hovering on its list items
- Custom navigation / menu output (walker?)
- how to add permalink/slug to wordpress custom link menu item
- Using walker to display all menu branches at once?
- How can I only show one responsive menu on mobile devices?
- Twenty-Twenty-Two Child Theme Mega Menu
- WordPress nav Walker – Bootstrap 5.2.3 – submenu not opening