• Resolved brbrbr

    (@brbrbr)


    As a user of my multisite installation noticed the menu’s stopped switching with the languages.

    re-saving the menu’s does not help

    as I diggd a bit in the code none of the menu’s has the _pll_menu_item
    meta data set, that one seems to hold the language data.

    as I think wp_update_nav_menu_item should set this option how ever this function returns on the first if statement : empty $_POST[‘menu-item-url’]

    same for the menu – widgets : always showing the default language
    on the front end the site uses the original TwentyThirteen theme, posts and pages switch fine

    https://ww.wp.xz.cn/plugins/polylang/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello!

    I have problem with switching too.

    I have 3 languages and the menu for each.

    When I switch the language, the menu does not change, while the content does.
    But the most interesting part is, when I reload the page with cache refresh, the changes appears.

    Could you help me with this?

    Plugin Support Chrystl

    (@chrystl)

    @pin4in
    Don’t seem to be the same issue of brbrbr.
    You describe an issue due to Ajax in your theme. Could you confirm that your theme is built with Ajax?
    In this case you should know that themes containing Ajax don’t work with multilinguale sites.
    Ask to your theme author if he could disable the ajax. Some themes have this setting.
    After that your menus should change.

    Thread Starter brbrbr

    (@brbrbr)

    Out of the blue the menu’s started working.

    I didn’t pay close attention, so I have no idea what changed in the meanwhile

    regards

    bram

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘menu's not switching’ is closed to new replies.