Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WordPress Menus "Manage Locations" tab is missing

Tags:

wordpress

menu

I have a fresh install of WordPress 4.0.1 running Twenty Fourteen theme with no plugins activated.

When I go to Appearance > Menus, I only see one tab "Edit Menus". "Manage Locations" tab that I used to have in earlier versions is missing.

When I create a new menu, it's not visible. However, if I try to create a new menu with the same name, I get an error message, "The menu name TESTMENU conflicts with another menu name. Please try another."

like image 346
user812120 Avatar asked Dec 02 '14 17:12

user812120


People also ask

How to manage menu locations in WordPress?

Managing Menu Locations. Short url: After you create a menu, you also need to tell WordPress where to use it. This is where the Manage Locations tab on the Menus page comes in. After clicking the Manage Locations tab on the Menus page, you will be shown a page similar to below, with a list of the various menu locations used in your Theme.

What should you do if your WordPress admin menu is missing?

You may also need to contact your website hosting company for help to resolve everything. While it might be more common for the menu on your WordPress site to disappear, your admin menu can also have issues. Missing code could be the culprit for both a missing admin menu and a lack of a menu on your front page.

Why is my WordPress menu not showing?

In most cases, you can fix the problem by adjusting your menu settings. If you recently changed to a new theme, you may need to change the layout a bit so that your menu can appear how you like it. Go to your WordPress dashboard and head to Appearance, then Menus. Make sure that your menu is there and that you didn’t accidentally delete it.

How do I change the location of my menu?

Once you have created a new menu, you can also manage the locations where they are displayed under the 'Manage Locations' tab. This is where you need to decide where you'd like to place your menu. If you'd like your menu to appear at the top of your page, you'll need to edit the 'header.php' file.


1 Answers

It turns out some themes does not have menu locations and you need to add theme manually through your theme's functions.php. Anyhow, here's what I did:

add_theme_support( 'menus' ); // <-- if you already see `menus` from your settings menu, you can ignore this line.

function register_menus() {

  register_nav_menus(
    array(
      'primary-menu' => _( 'Primary Menu' ) // add locations here.
      'your-preferred-menu-location-id' => _( 'Title of your menu location' )
    )
  );
}

add_action( 'init', 'register_menus' ); // <-- of course without this, the function above will not execute.

If the code above does not work for you, try enable/disable plugins that might be causing the issue.

Hope this helps.

like image 145
Jovanni G Avatar answered Nov 06 '22 07:11

Jovanni G