Support » Plugin: Polylang » Translation menu problem

  • Resolved rincay

    (@rincay)


    Hi,
    the menu translation is not working on my wordpress theme ”Flathe”.
    I follow the instructions to create two menus (one in english, one in spanish). Translation works on the page texts but not on the menu…

    The header php extract looks like this :
    <?php wp_nav_menu( array( ‘menu’ => ‘main’, ‘menu_id’ => ‘menu’, ‘menu_class’ => ”, ‘container’ => false, ‘depth’ => 0 ) ); ?>

    I tried several alternatives found on this support forum but nothing works…

    Here is a link to my “in construction” website : http://www.noë.com/EV/

    https://wordpress.org/plugins/polylang/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Chouby

    (@chouby)

    Try looking for the register_nav_menu instruction and report it here.

    Thread Starter rincay

    (@rincay)

    Thank you for this quick answer.
    Not sure that it’s what you want (i’m a beginner) :

    /* WordPress menu feature
    ———————————————————————————–*/
    register_nav_menus( array(
    ‘main’ => __( ‘Main Menu’, ‘themeText’),
    ));

    Plugin Author Chouby

    (@chouby)

    That’s what I wanted. And that’s always the same common bug in themes. Change your wp_nav_menu to:

    wp_nav_menu( array( 'theme_location' => 'main', 'menu_id' => 'menu', 'menu_class' => '', 'container' => false, 'depth' => 0 ) );

    That’s generally fix the issue.

    You should do this in a child theme to avoid breaking the mod when you’ll update it.

    Thread Starter rincay

    (@rincay)

    Problem solve!
    Thanks a lot! :^)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Translation menu problem’ is closed to new replies.