Polylang – Header Menu not changing languages on Responsive Theme
-
Hi,
I’ve had a look back through a lot of threads on here, and tried some of the solutions given, but the header menu is still staying as the English menu despite switching languages.One of the solutions (changing theme_location to primary) gave just “Home” on English site, but all the English and French top level pages on the French menu, so it seemed like I was getting close.
Here is what’s in my header.php file:
<?php wp_nav_menu(array( 'container' => 'div', 'container_class' => 'main-nav', 'fallback_cb' => 'responsive_fallback_menu', 'theme_location' => 'header-menu') ); ?>
And in functions.php:
register_nav_menus(array( 'top-menu' => __('Top Menu', 'responsive'), 'header-menu' => __('Header Menu', 'responsive'), 'sub-header-menu' => __('Sub-Header Menu', 'responsive'), 'footer-menu' => __('Footer Menu', 'responsive') ) );
I’m sure it’s only a small thing to get it working, but I’ve been trying for the past hour or so to no joy!
Thanks very much.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Polylang – Header Menu not changing languages on Responsive Theme’ is closed to new replies.