Menu is shown in wrong language
-
Hello,
Hueman sadly show my menu only in the default language.
So if I change the language into English the menu is still shown in German.
In the themes customizer everything is shown correct.I’m using Polylang and found here the description of the problem:
https://polylang.wordpress.com/2014/04/10/incorrect-usage-of-wp_nav_menu/But now I don’t know how to fix it. Can you help me?
-
Hi,
I had tested with polylang plugin.
Yes, I can replicate your issue.I am able to setup other language menu in customizer but after Save and Publish, it immediately reverts back to default language menu.
I had made an issue report.
https://github.com/presscustomizr/hueman/issues/377I believe the developers will work on it soon.
Thank you.
Great, Thank you Denzel!
You are welcome.
Thank youThe developers still have not fixed this problem unfortunally.
You can fix it your self for the time being by removing the ‘theme_location’ in the wp_nav_menu calls. You have to change the following 3 files:in /parts/header-main.php change
`
wp_nav_menu(
array(
‘theme_location’=>’header’,
‘menu_class’=>’nav container-inner group’,
‘container’=>”,
‘menu_id’ => ”,
‘fallback_cb’=> is_multisite() ? ” : ‘hu_page_menu’
)
);
`
to
`
wp_nav_menu(
array(
‘menu_class’=>’nav container-inner group’,
‘container’=>”,
‘menu_id’ => ”,
‘fallback_cb’=> is_multisite() ? ” : ‘hu_page_menu’
)
);
`in /parts/header-nav-topbar.php change
wp_nav_menu(array('theme_location'=>'topbar','menu_class'=>'nav container-inner group','container'=>'','menu_id' => '','fallback_cb'=> false));to
wp_nav_menu(array('menu_class'=>'nav container-inner group','container'=>'','menu_id' => '','fallback_cb'=> false));in footer.php change
wp_nav_menu( array('theme_location'=>'footer','menu_class'=>'nav container group','container'=>'','menu_id'=>'','fallback_cb'=> 'hu_page_menu' ) );
towp_nav_menu( array('menu_class'=>'nav container group','container'=>'','menu_id'=>'','fallback_cb'=> 'hu_page_menu' ) );The problem is still actual. https://antidk.org.ua/en/
Hueman v3.3.6
The topic ‘Menu is shown in wrong language’ is closed to new replies.
