Mobile Menu JetPack not switching languages
-
Hi,
I’ve activated the Mobile Theme module of JetPack (Minileven) which is a optimized version of Twenty Eleven Theme for mobiles.
While in my desktop theme (customized Kirumo) I can perfectly see the menus as I organized in the Admin Menu page and changing the language (location) depending on the user language, in the mobile theme it doesn’t work.In the original header.php of that theme the menu is called like this:
wp_nav_menu( array( 'theme_location' => 'primary', 'container_class' => '', 'menu_class' => 'nav-menu', 'menu' => $menu_id ) );
In this way the menu is always showing in English because the $menu_id variable is containing the English location.I’ve tried also removing the ‘menu’ argument from the call and indeed I get the menu in the correct language but not the correct menu: some elements are missing, others are there when not included and the sorting is alphabetical. As I can understand the default menu of the theme is showing (only Page-type posts and their children, that’s wp_page_menu()) instead of showing my customized menu (with categories).
In its funtions.php Minileven register the location ‘primary’ and Kirumo ‘mobile’, ‘header’, and ‘social’. Never mind which one I use as theme_location, the result is the same. Even if I remove the registration of ‘primary’ in Minieleven still the menu is the same. The only argument affecting is ‘menu’.
How can I hack this properly?
I’ve read some other threads but I don’t find the way to adapt it to my case.Thanks a lot.
Regards.
P.D.: I have a cache plugin but I’ve deactivated it while doing the tests.
- The topic ‘Mobile Menu JetPack not switching languages’ is closed to new replies.