I am developing a theme of my own. In functions.php
I added -
add_action( 'init', 'register_my_menus' );
function register_my_menus() { register_nav_menus( array(
'front_login_menu' => _( 'front_login_menu location'),
'top_front_general_menu' => _( 'top_front_general_menu'),
'top_general_menu' => _( 'top_general_menu'),
'top_student_menu' => _( 'top_student_menu'),
'top_admin_menu' => _( 'top_admin_menu'),
'top_trainer_menu' => _( 'top_trainer_menu' ) ) ); }
Then I created the custom menus in the admin panel. But suddenly I found that those menus except one are not visible in the right side of the Appearance -> Menus
page in online server but the theme locations do exist. But those menus are visible in my localhost. I was supposed to create them (some if not all) in online server too.
If I want to create one of those missing menus then the message says:
The menu name .... conflicts with another menu name. Please try another.
How can I get those menu names appear in the right side of the theme locations?
register_my_menus
. And moreover try debugging turned on into your WP installation.