Location Management Tab Missing

I have a new version of WordPress 4.0.1 that runs the Twenty 14 theme, without activating the plugins.

When I go to Appearance> Menus, I see only one tab "Edit Menu". The Location Management tab that I used in previous versions is missing.

When I create a new menu, it does not appear. However, if I try to create a new menu with the same name, I get an error: "The TESTMENU menu name conflicts with another menu name. Try another one."

+4
source share
1 answer

It turns out that in some themes there is no menu, and you need to add the theme manually through your theme functions.php. Anyway, here is 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 above code does not work for you, try enabling / disabling plugins that may cause the problem.

Hope this helps.

0
source

All Articles