The menu is not workin
-
Hi,
first of all, let me say that it is a great plugin. I read your support articles on menu not working. where you have told that in the menu theme_location must be specified. In my theme I have checked the codes but even after theme location is defined the menu is not working.I have created two menus in appearance>menu, one in english and another in hindi. But the menu always remains to english menu whehter i am seeing hindi post or english post. The hindi menu is not working simultaneously
here is how the functions.php registers the menu
register_nav_menus( array( 'primary-menu' => __( 'Primary Menu', 'mythemeshop' ), ) ); }
and here is how menu is called in header.php
<div id="primary-navigation" class="primary-navigation" role="navigation" itemscope itemtype="https://schema.org/SiteNavigationElement"> <nav id="navigation" class="navigation clearfix mobile-menu-wrapper"> <a href="#" id="pull" class="toggle-mobile-menu"><?php _e('Menu', 'mythemeshop'); ?></a> <?php if (has_nav_menu('primary-menu')) { ?> <?php wp_nav_menu(array('theme_location' => 'primary-menu', 'menu_class' => 'menu clearfix', 'menu_id' => 'menu-primary-menu', 'container' => '', 'walker' => new mts_menu_walker)); ?> <?php } else { ?> <ul class="menu clearfix" id="menu-primary-menu"> <?php wp_list_pages('title_li='); ?> </ul> <?php } ?> </nav> </div>
kindly help me with it. I am not a professional programmer. so would appreaciate, if you can give me the codes
- The topic ‘The menu is not workin’ is closed to new replies.