add_filter('nav_menu_css_class', 'special_nav_class', 10, 2);
function special_nav_class($classes, $item){
if(($key = array_search('fa', $classes)) !== false) {
unset($classes[$key]);
}
return $classes;
}
Related Posts:
- Dynamically exclude menu items from wp_nav_menu
- Why is ‘nav_menu_item_args’ filter’s $item argument empty?
- Third level navigation class
- Add a counter beside menu item label
- Add custom link on the fly to nav menu
- Possible to append class to nav menu added to widget area?
- Show thumbnail to category items in wp_nav_menu(), how?
- Add Javascript to WordPress Menu
- Add custom menu item using wp_nav_menu_items filter
- How to modify navigation menu of the “My Account” page in WooCommerce
- Custom ID for certain menu item?
- Add data-icon input to WordPress custom menu links
- Custom search filter causes menu and query_posts problems
- How to get a different mobile menu than desktop menu in the twentytwelve child theme
- How to highlight the right item in the navbar
- HTML Bootstrap navigation menu to WordPress menu using wp_nav_menu
- WordPress Export Import Site Navigation Menu
- Is it possible to add a filter for the output of nav-menu items in admin?
- Bar separated navigation by extending Walker_Nav_Menu
- Filter menu item to add classes/attributes?
- Edit html for menu items in default frontend menu
- Replace menu tag with tag
- How to style current page menu item when using a walker
- Number of items in a menu
- Add an extra field to the navigation menu box?
- How do i style the current menu anchor link’s parent anchor link? [closed]
- Does the menu item ID ever change?
- Hide and show menu subpages
- BuddyPress – How to add logout in nav menu
- How to add a parameter to links in the nav menu?
- Nav Walker current menu item not displaying
- Page-Linking Structure
- Navigation (wp_nav_menu) refuses to nest within parent element
- Removing strip_tags not working on nav_menu_description
- Add custom menu item metabox in Navigation Settings
- Get admin menu link
- wp_nav_menu including Skype URL
- Hide Menu Unless Logged In
- Highlight another nav item
- add span to top level links of a wordpress menu called “main”
- How to have two menus using Bootstrap nav walker?
- Debugging – trying to add search box to menus
- How to change theme header to support multiple nav menus?
- Making a navigation header menu with bulma, need some advice
- From a page, is it possible to find entry’s “menu_item_parent”?
- How to have the Header show different content on different pages?
- Programmatically add existing pages and subpages to Appearance Menu
- walker – 0 level on submenu formatting
- Determine the last child of the parent menu WP Nav Walker
- Navigation doesn’t render when wp is hosted
- Remove nav menu item by script
- Using Zurb’s Foundation Tabs as WordPress Nav (Active Tab)
- Links do not open from click, only in new tab [closed]
- How to get rid of the home link in nav menu?
- How to remove dropdown from wp_nav_menu
- Is it possible to add a dynamic link in the main navigation in a child theme
- How to change menu structure?
- display menu as table layout
- Show children (sub-navigation) of active menu item only
- Adding an external link to wordpress menu
- How to make wordpress nav menu use post custom meta data
- add another html tag after li element in wp_nav_menu
- Twenty Fifteen: Change navigation menu behavior
- menu-item class missing on wordpress menu
- Odd spacing in Navigation Bar [closed]
- wp_list_pages Hierarchical Help
- How to avoid the and which added when custon menu widget is used
- Add pages content to startpage through custom menu
- How to add a menu that belongs to parent blog to all child-blogs?
- How to change how WordPress renders navigation menu on Block Themes
- Problem with links once in portfolio item
- url_to_postid method in walker_nav navigation menu causing exceptionally high TTFB
- Add Different Class on Different Ul in twenty-twentyone theme
- Is it all right to put the whole tag into template_part file?
- wp_nav_menu container style args
- Misleading behaviour on Menu & Theme location
- How can I click the parent menu then redirect to a special URL?
- How do I display menu in header without loosing styles?
- Adding additional html to the end of the root level in a custom nav walker
- Navigation bar is on live site but nothing under menu so can’t add in a page
- Building a menu from a large number of pages?
- How to select particular menu position in wordpress?
- Links in new menu don’t work
- Conditional Nav Menu Inside Nav Menu Across Multisite Sites
- Add dynamic content block to nav section generated by custom walker
- Next/previous a-like single navigation
- How to output the menue structured for tabbed navigation?
- Replace Menu Item with Logged in username
- Walker for menus
- WordPress Navigation
- Navigation list not correctly styled on pages with custom template (missing .current-menu-item)
- How was this menu system created?
- Display sub menus as separate lists
- how can i get the page_ID in nav li [closed]
- How do i add logo in wordpress studiopress (glam theme)?
- Add featured posts to nav menu
- Why is WordPress stripping anchor links from mneu item URLs?
- Add button and title on submenu WordPress
- wp_nav_menu parent in submenu
- In WordPress, I want to use code to filter out one menu item (page) from displaying when I call wp_nav_menu() function