Add Span Class Inside Wp_Nav_Menu Link Anchor Tag / Or you can add class <li class.
Add Span Class Inside Wp_Nav_Menu Link Anchor Tag / Or you can add class <li class. . To add an anchor's name to a wordpress menu item Add_filter( 'nav_menu_css_class' , '_namespace_menu_item_class' , 10, 2 ); Add_filter('nav_menu_css_class' , 'special_nav_class' , 10 , 2); Add the menu anchor link widget to the top of the widget or section which you want to scroll to it in elementor. So we will take a roundabout. Given a theme_location parameter, the function displays the menu assigned to that location. #highlightactivemenu #highlightactivenavigationitem welcome to * how to add active class to wp nav menu current menu item ( simple ) highlight active. .call a wp_nav_menu_walker to manipulation wp_nav_menu data, here is i am telling you easy way to add your custom class in wp_nav_menu's link. This allows you to add classes only to anchors of specific menu. Just add your classes into.