Plugin Author
Chouby
(@chouby)
It’s hard to help with non free themes.
Can you access the languages -> menus panel ? If yes, it is possible that your theme hardcodes its menu name (in that case, Polylang will not switch menus). To check that, look in your code for “wp_nav_menu”. For Polylang to work, the theme_location must be defined but not the menu.
Something like:
wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
is OK
Something like:
wp_nav_menu( array('menu' => 'Project Nav' ));
is not OK
Chouby, words can’t express my gratitude, you are awesome! Your plugin is excellent and this single answer along http://codex.ww.wp.xz.cn/Navigation_Menus helped me to configure a bought theme! (the menu name was hardcoded). You are so kind and patient, something not usual nowadays.
Best regards, and thank you!
Plugin Author
Chouby
(@chouby)
Thank you very much for this positive feedback 🙂
I’m using Polylang with The Proton theme, and I suffered problems to set multingual menus becouse, as @chouby had suggested in some previous support answers, The Proton is a hardcoded theme and there is not a generic solution for my problem.
I solved my problem in this way:
in header.php changed this:
wp_nav_menu( array(‘container’ => ‘nav’, ‘container_class’ => ‘jqueryslidemenu’, ‘container_id’ => ‘menu’, ‘walker’ => new description_walker() ));
for this:
<?php wp_nav_menu( array(‘container’ => ‘nav’, ‘container_class’ => ‘jqueryslidemenu’, ‘container_id’ => ‘menu’, ‘theme_location’ => ‘primary’, ‘walker’ => new description_walker() )); ?>
I’m new in php and wordpress, and I don’t know exactly what this change means or does, I’ve been trying and works for me. Perhaps can help someone.
fins aviat!