-
@mercime replied to the forum topic Custom menu problems in BuddyPress default and child themes in the group Creating & Extending 12 years, 6 months ago
@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, […] -
@mercime replied to the topic Custom menu problems in BuddyPress default and child themes in the forum Creating & Extending 12 years, 6 months ago
@andrearessell … then you also add this to your theme’s functions.php file:
// Remove classes in custom menu list
[Read more]
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,…
@andrearessell
Active 8 years, 10 months ago