Wordpress “我的菜单栏”;菜单“;我应该做什么来展示它?

Wordpress “我的菜单栏”;菜单“;我应该做什么来展示它?,wordpress,Wordpress,我在这里错过了什么来设置外观下的功能“菜单” 我正在构建新的主题 我有定义菜单的折叠代码,但它消失了,正如你在图中看到的 非常感谢 header.php <nav id="access" role="navigation"> <h3 class="assistive-text"><?php _e( 'Main menu', 'twentyeleven' ); ?></h3> <?

我在这里错过了什么来设置外观下的功能“菜单”

我正在构建新的主题

我有定义菜单的折叠代码,但它消失了,正如你在图中看到的

非常感谢

header.php

<nav id="access" role="navigation">
                <h3 class="assistive-text"><?php _e( 'Main menu', 'twentyeleven' ); ?></h3>
                <?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff. */ ?>
                <div class="skip-link"><a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to primary content', 'twentyeleven' ); ?>"><?php _e( 'Skip to primary content', 'twentyeleven' ); ?></a></div>

                <?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assigned to the primary location is the one used. If one isn't assigned, the menu with the lowest ID is used. */ ?>
                <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
            </nav><!-- #access -->
// This theme uses wp_nav_menu() in one location.
    register_nav_menu( 'primary', __( 'Primary Menu', 'twentyeleven' ) );
<?php twentyeleven_content_nav( 'nav-above' ); ?>
index.php

<nav id="access" role="navigation">
                <h3 class="assistive-text"><?php _e( 'Main menu', 'twentyeleven' ); ?></h3>
                <?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff. */ ?>
                <div class="skip-link"><a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to primary content', 'twentyeleven' ); ?>"><?php _e( 'Skip to primary content', 'twentyeleven' ); ?></a></div>

                <?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assigned to the primary location is the one used. If one isn't assigned, the menu with the lowest ID is used. */ ?>
                <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
            </nav><!-- #access -->
// This theme uses wp_nav_menu() in one location.
    register_nav_menu( 'primary', __( 'Primary Menu', 'twentyeleven' ) );
<?php twentyeleven_content_nav( 'nav-above' ); ?>


确保在Functions.php文件中启用了菜单支持

    if (function_exists('add_theme_support')) {
          add_theme_support('menus');
    }
更多信息请点击此处:

你的意思是你看不到wordpress的导航,还是说它只是其他东西?你说得对,我看不到导航“分类菜单”,正如你在图中看到的那样。但如果我激活其他主题,比如:twentyeleven,我会看到的