When I add a custom menu to my theme via a widget I get this line of code:
<ul id="menu-insurance" class="menu"><li id="menu-item-294" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-294"><a href="http://test">test</a></li>
I need to remove the class="menu"
, but I can not figure out how this is getting added to my custom menu when I use a widget. This style is creating style issues in my theme.
How can I remove the class="menu"
from this widget?
My register sidebar is like this, I am not sure if it is doing it or if the wordpress code looks for css styling for menu when you use the custom menu widget:
register_sidebar(array(
'id' => 'sidebar',
'name' => __('Main Sidebar'),
'description' => __('Sidebar used on most pages'),
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h2>',
'after_title' => '</h2>',
));
The custom menus are (or should be) created in
functions.php
inside your them. Find a piece of code like this one, and check or add themenu_class
parametter and set to""
.