Wordpress Custom Menu Widget and CSS Styling

admin

Administrator
Staff member
When I add a custom menu to my theme via a widget I get this line of code:

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
Code:
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
Code:
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:

Code:
     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>',

));