0

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

2
Contributors
1
Reply
11
Views
3 Years
Discussion Span
Last Post by veedeoo
0

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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.