Hello,
I am making a wordpress theme by myself. I register the menus in my theme's function.php and show the menu using wp_nav_menu(). But problem is that the registered menu is not showing on wordpress dashboard>appearance>. In appearance tab there are themes and editor tab but no menu tab.

my function.php is as below :

add_action('after_setup_theme', 'WP_Bstrap_setup' );

function WP_Bstrap_setup() {
load_theme_textdomain('WP_Bstrap',get_template_directory().'/languages');

add_editor_style();

add_theme_support('automatic-feed-links');

add_theme_support('post-formats',array( 'aside','image','link','quote','status' ) );

register_nav_menus( array('primary'  => __( 'Primary Navigation', 'WP_Bstrap' ),
  ) );
add_theme_support('custom-background', array('default-color' => 'e6e6e6',));
}

and menu code:

<?php
wp_nav_menu( array('theme_location' => 'primary',
            'menu_class' => 'nav'));
?>

Please Help me to find where is the problem. I am new in WordPress.Thank you

Hi,

I believe to be able to be able for the menu show on the dashboard, you will have to do it as suggested by codex. Dashboard is part of the admin menu group.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.