0

I have a very simple question, how do I remove a menu from a WordPress site? Is there a plugin out there that can handle this or do I have to go into my theme's code and remove something from there?

0

In your admin panel, go to Appearance > Menus > Manage Locations

There you make sure that none of the theme locations have a menu assigned.

Alternatively, you can modify your theme.

If you want to do that, search for calls to wp_nav_menu.

If you take theme twentyfourteen, you have 2 files: header.php and sidebar.php

in header.php the portion to update looks like

    <div id="navbar" class="navbar">
        <nav id="site-navigation" class="navigation main-navigation" role="navigation">
            <h3 class="menu-toggle"><?php _e( 'Menu', 'twentythirteen' ); ?></h3>
            <a class="screen-reader-text skip-link" href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentythirteen' ); ?>"><?php _e( 'Skip to content', 'twentythirteen' ); ?></a>
            <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?>
            <?php get_search_form(); ?>
        </nav><!-- #site-navigation -->
    </div><!-- #navbar -->

Note: if you want to modify a theme, create a child theme as your modifications would be overwritten when you update the theme.

| improve this answer | |
  • Thanks you for response, I looking to remove the actual menu as it is and not the content in it – Tom Aug 14 '14 at 20:57
  • I believe what FranceImage tried to say is that you need to go here: yourdomain.com/wp-admin/nav-menus.php?action=locations. – drabello Aug 14 '14 at 21:08
  • I updated the answer in case you want to update the html markup to remove the navbar altogether – YaFred Aug 14 '14 at 21:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.