Navigation menu
-
I have a theme in which I have:
In functions.php:
add_theme_support(‘menus’);
register_nav_menus(array(
‘primary_navigation’ => __(‘Primary Navigation’, ‘tt2013’),
‘ft_navigation_navigation_l’ => __(‘Footer Navigation Left’, ‘tt2013’),
‘ft_navigation_navigation_r’ => __(‘Footer Navigation Right’, ‘tt2013’),
‘ft_productions_navigation_l’ => __(‘Footer Products Navigation Left’, ‘tt2013’),
‘ft_productions_navigation_r’ => __(‘Footer Products Navigation Right’, ‘tt2013’),
‘ft_support_navigation’ => __(‘Footer Support Navigation’, ‘tt2013’),
‘ft_contactus_navigation’ => __(‘Footer Contact Us Navigation’, ‘tt2013’),
‘learn_navigation’ => __(‘Learn Navigation’, ‘tt2013’),
‘category_top’ => __(‘Product Category Top’, ‘tt2013’),
‘category_bottom’ => __(‘Product Category Bottom’ , ‘tt2013’),
‘myaccount’ => __(‘My Account’, ‘tt2013’),
‘questions’ => __(“Questions”, ‘tt2013’)
));In header.php:
<div class=”navigation”>
<div class=”row”>
<div class=”twelve columns”>
<?php
wp_nav_menu( array(
‘theme_location’ => ‘primary_navigation’,
‘container’ => false,
‘menu_class’ => ”,
‘echo’ => true,
‘before’ => ”,
‘after’ => ”,
‘link_before’ => ”,
‘link_after’ => ”,
‘depth’ => 0,
‘items_wrap’ => ‘<ul class=”nav-bar”>%3$s’)
);
?>
</div>
</div>
</div>Nw, I am developing a new theme. I cut and paste the exact same code and my menu does not show. What can be the problem?
By the way, I am using Zurb Foundation. First theme is in Foundation 3 and second theme is in Foundation 4.
- The topic ‘Navigation menu’ is closed to new replies.