• Hello,

    we are using the theme “Elogix” for our wordpress installation.
    Our problem is that we can’t get two languages to work completely fine with it – the menu does not switch to the other language as well, remains as the one before. Custom menus are supported. Also, it does not show a language switcher in the menu.
    Could you please help us?

    Thanks in advance!

    https://www.ads-software.com/extend/plugins/polylang/

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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 https://codex.www.ads-software.com/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!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Polylang] multilingual menus’ is closed to new replies.