wp-bootstrap-navwalker icon indicating copy to clipboard operation
wp-bootstrap-navwalker copied to clipboard

Filter Menu Classes

Open ernstoarllano opened this issue 12 years ago • 1 comments

Is there a way to filter out certain classes from the nav_menu_css_class? In particular I'm looking to get rid of these classes: menu-item, menu-item-type-post_type, menu-item-object-page, menu-item-#.

ernstoarllano avatar Apr 09 '14 23:04 ernstoarllano

You could potentially filter them by using WordPress's built in filters as they are part of WordPress core.

Here is a link to the correct filter for reference: http://codex.wordpress.org/Plugin_API/Filter_Reference/nav_menu_css_class

SideQuestDIY avatar Apr 10 '14 15:04 SideQuestDIY