Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9224035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:13:03+00:00 2026-06-18T04:13:03+00:00

When I add a custom menu to my theme via a widget I get

  • 0

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

));
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T04:13:04+00:00Added an answer on June 18, 2026 at 4:13 am

    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 the menu_class parametter and set to "".

    wp_nav_menu(array(
        'container' => false,                           // remove nav container
        'container_class' => 'menu clearfix',           // class of container 
        'menu' => 'The Main Menu',                      // nav name
        'menu_class' => 'top-nav clearfix',             // This is it!!!
        'theme_location' => 'main-nav',                 
        'before' => '',                                 // before the menu
        'after' => '',                                  // after the menu
        'link_before' => '',                            // before each link
        'link_after' => '',                             // after each link
        'depth' => 0,                                   // limit the depth of the nav
        'show_home'   => '1',                           // show home link
        'fallback_cb' => 'bones_main_nav_fallback'      // fallback function
    ));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Florian's wrapper class to call GetSystemMenu() to add a custom menu item
I would like to add a custom context menu with line separators, but can't
I'm using the following code to add custom taxonomies to my menu in wordpress.
how can i add a custom view to the right click menu of every
I'd like to add custom controls to the mediaPlayer control view much as this
I am trying the following syntax to add menu-item on dashboard: <?php add_menu_page( $page_title,
There are custom posts and taxonomy in my theme (Wordpress). I can add posts
I am building a custom WordPress theme and need to add descriptions to my
I am currently writing a custom context menu class which utilizes jQuery largely. We
I want to show a custom menu item for a ToolItem when it is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.