0
我在这里错过设置功能“菜单”出现?我的菜单栏“菜单”正在消失,我应该怎么做才能显示它?
我正在构建新的主题。
我有代码女巫定义菜单,但它会消失,因为你可以在图像中看到。
非常感谢
的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 -->
function.php
// This theme uses wp_nav_menu() in one location.
register_nav_menu('primary', __('Primary Menu', 'twentyeleven'));
的index.php
<?php twentyeleven_content_nav('nav-above'); ?>
你的意思是你看不到的WordPress的净资产值,或者它仅仅是其他东西 – defau1t
你的权利,我不看导航“类别菜单”你可以在图像中看到。但是,如果我活跃其他主题,如:二十几岁,我会看到 – yossi