There might be a better way to do this, but I would use jQuery to target the menu items and .addClass(). So, something like:
$( document ).ready(function() {
$(“.menu-item-one”).addClass(“fa fa-icon”);
);
Related Posts:
- How to use a WordPress’ existing admin icon?
- Add custom SVG icons to Social Icon MENU in WordPress Twenty Seventeen Child Theme
- How to get Menu Navigation Labels to output HTML
- How to show Home Page link in WordPress Menu and how to add an icon to this?
- Get custom classes in WordPress Navigation Menu
- how to add home icon instead of text in wordpress menu
- Where to place a svg chevron down in my custom walker?
- How To Add Class To Style Search Box
- Icon not shown in Dropdown menus in Twenty Seventeen Theme
- How to change mobile menu (toggle) icon in WordPress – Full Site Editing?
- Is there an easy way to replace a custom menu link with a page or post?
- Why do Custom Nav Menus generate so many classes on list items? Can I manage this somehow?
- Custom search filter causes menu and query_posts problems
- Using nonce in menu item
- How do I add nested categories to drop-down menu in twenty-eleven?
- Add custom page link with anchor
- How show sub menu only using wp_nav_menu()
- Custom Nav Walker menu – Display children count
- How to add menu to Dashboard that can be viewed by all users
- List children of second level sub page
- Show top-level parent with submenu menu walker
- Add section to custom menu panel
- wp_nav_menu custom walker – child items
- Adding menu items dynamically using wp_nav_menu_objects
- BuddyPress – How to add logout in nav menu
- Highlight the “Home” / “Blog” button while on main page
- Where do custom menus get constructed?
- How to remove div container in custom menu?
- how to add Custom menu item like User name in Header Menu only
- Menus – Open items in new tab/window?
- How can I access the menu ID of an element in a WordPress Nav_Walker
- Highlight another nav item
- How to translate menu items?
- echo same menu items across multi-site platform
- Custom Menu url is Empty
- Get category ID from nav menu
- Menus don’t appear in admin area / WordPress Multisite
- Programmatically add existing pages and subpages to Appearance Menu
- Highlight current post ancestor parent menu items
- Ad custom admin page like WordPress customizer [closed]
- wp_nav_menu() doesn’t work
- Insert other menus as submenus of a main menu
- Appearance Menus Screen – menu item drop down menu not functioning
- Weird behaviour on Edit Menus screen
- Make a navigation menu in the same post [duplicate]
- Count within foreach loop
- How to actually make menu walker alive on admin interface?
- Highlight parent if item from submenu is active
- How to exclude pages in the menu without pageID?
- Why Isn’t My WP_Nav_Menu returning false?
- changing host.. data loss
- Theme Location empty
- How to buid wordpress menu with auto width sub-menu items in dropdown menu without any items sharing one line [closed]
- How to avoid a duplicate query from using wp_nav_menu?
- Wrapping menu’s top-level link and sub-menus in div
- Menu on mobile version doesn’t collapse after choosing menu item [closed]
- How can I query all available public post types and taxonomies?
- If test for “has_nav_menu()” does not return echo when no menu exists
- If current menu item is child or parent with child?
- Is it possible to dynamically register menus?
- Dynamic menu wp_list_pages displaying only current branch including: current page, his siblings and its childs
- Parent Page > Child Page Menu
- Opening Menu link in another tab
- How to add class to anchor using wp_nav_menu
- Page header menu links change
- Is it possible to link to the same page from wordpress page menu?
- Remove current-menu-item for a specific link
- How do I add 3rd level of dropdowns to wp_nav_menu array?
- insert div into a menu item before the link and more
- How to remove empty menu space when creating admin page without menu title using add_submenu_page
- How to unlock menu editing
- How to add a taxonomy type in Menus?
- WordPress + Bootstrap: Replace primary navigation menu on mobile?
- Multisite Setup – Menu Items To Reference Pages in Different Subdomains
- changin the url (permalink as it goes these days) on one specific menu layer
- Admin: WooCommerce Navigation Menus do not show empty categories search tab
- Using Anchor Link In Nav Menu
- WordPress database issues – menu not saving correctly, media thumbnails not showing
- How do I create a new directory to hold the assets for a new menu item?
- How to set active class to the menu of any page coming from a single.php template
- Parent link need to go first child submenu
- Sum root term’s entries count from child terms count
- Add newsletter signup element to navigation bar
- All custom links suddenly lack href attributes
- wp_nav_menu custom Page class
- WordPress – Apperance > Menu
- How to stop showing menu in static home page
- How do I fix the URL used in the WordPress admin menu for customize.php
- How do I add a link to the menu that has a charector (?) in it?
- Problem with custom menus
- Second tier sidebar navigation
- Make title bar collapse when scrolling
- how to show a custom taxonomy as dropdown in wordpress?
- Problem to asign class to with wp_nav_menu()
- Site with all content on the front page
- Changing color of specific tab of top menu
- Site pages show the page title under navigation bar
- Navigation menu, remove item from desktop
- Jquery dropdown menus working locally, but not in WordPress [duplicate]
- Wrapping my ‘s with