Add this to the wp_nav_menu array in the theme’s header.php file
'menu_class' => '',
Thanks for the help, but unfortunately that didn’t do the trick. Any other recommendations?
@andrearessell … then you also add this to your theme’s functions.php file:
// Remove classes in custom menu list
add_filter('nav_menu_css_class', 'mme_css_attributes_filter', 100, 1);
add_filter('page_css_class', 'mme_css_attributes_filter', 100, 1);
function mme_css_attributes_filter($var) {
return is_array($var) ? array_intersect($var, array('current-menu-item')) : '';
}
// Remove empty classes in custom menu list
function mme_remove_empty_classes($menu) {
$menu = preg_replace('/ class=""| class="sub-menu"/','',$menu);
return $menu;
}
add_filter ('wp_nav_menu','mme_remove_empty_classes');
Thanks so much for your help. The extra classes are gone now, but the menu is still showing up as a bullet list.
== The extra classes are gone now, but the menu is still showing up as a bullet list. ==
The menu was never rendered as bullet list so I don’t understand what you mean that it “is still showing up as bullet list.” The latest version of Frisco theme is version 1.5.04 so do make sure that’s the version you’re using.
Also, make sure that you didn’t delete anything from the navigation menu in your theme’s header.php. You can compare it with theme’s original header.php file – https://themes.svn.wordpress.org/frisco-for-buddypress/1.5.04/header.php
If you made any changes to the stylesheet, then re-upload theme’s original style or copy over . https://themes.svn.wordpress.org/frisco-for-buddypress/1.5.04/style.css