• Hello,

    I’m experiencing some problems with Polylang, as I have to click everytime on the flag if I want to display the translated page.
    Here’s my website -> https://new.alessandrocarpentiero.com/

    The translated pages (in italian) are “Architectural & Commercial” and “About”.
    If you for example go on the home, select italian and then click on one of the above, you’ll display them in english. Same, if you then select Italian, you’ll display the page in italian, but clicking on the home or the other page, it gets displayed in english.

    Thank you for your help!

    Kind regards

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter alessandrocar88

    (@alessandrocar88)

    I thought it could be a problem caused by an external plugin, so I’ve deactivated W3 Total Cache and WP-Optimize, then flushed the cache from my cPanel, but nothing has changed.

    Does someone have any clue about this?

    Thank you

    Can you please paste here the code you are using for wp_nav_menu ??

    Thread Starter alessandrocar88

    (@alessandrocar88)

    Hello,

    thank you for your answer.

    I went in the Editor -> Theme Header and found 3 times the following; I hope it helps.

    wp_nav_menu( array(
    ‘container’ => false,
    ‘theme_location’ => ‘main-menu’,
    ‘menu_class’ => ‘menu’,
    ‘fallback_cb’ => ‘penci_menu_fallback’,
    ‘walker’ => new penci_menu_walker_nav_menu()

    Kind regards

    Thread Starter alessandrocar88

    (@alessandrocar88)

    I’ve found out the problem.
    The Italian menu was linking to the english pages (as I thought it’d link then directly to the translated version).
    I’ve edited the menu adding the Italian pages to it, and now it works!

    Things looks good, now i need you to here Admin -> Appearance -> Menus and make sure you have 2 menus (English and Italian), select each one and check the right choice from Menu Settings

    https://s4.postimg.io/grgdfie8d/Screenshot_from_2016_08_26_16_04_04.png

    @alessandrocar88, Good Job ??
    Please mark this topic as RESOLVED

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Have to click everytime on the Flag to Translate’ is closed to new replies.