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' );
function register_menus() {
register_nav_menus(
array(
'primary-menu' => _( 'Primary Menu' )
'your-preferred-menu-location-id' => _( 'Title of your menu location' )
)
);
}
add_action( 'init', 'register_menus' );
If the above code does not work for you, try enabling / disabling plugins that may cause the problem.
Hope this helps.
source
share