Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
When switching from German to English on the website, the menu remains in English and does not switch back to German, despite the page content changing to German.

Solution:
1. Verify if the issue is caused by AJAX by reloading the page (using command/alt+R). If the correct elements load after a manual refresh, AJAX might be the cause.
2. Ensure that the language filtering for AJAX operations is enabled in WPML. Navigate to WPML → Languages, scroll down to 'Language filtering for AJAX operations', and check if 'Store a language cookie to support language filtering' is activated.
3. If the problem continues, deactivate other plugins temporarily to identify if any are interfering with the language switching.
4. Check your theme settings to see if you can disable AJAX loading.
5. If these steps do not resolve the issue, contact the theme's author and suggest joining our Global Program to ensure full compatibility with WPML.
6. You can also check your theme's compatibility with WPML on our theme compatibility page.

If this solution does not seem relevant to your situation, please open a new support ticket with us.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Andrey 1 year, 4 months ago.

Assisted by: Andrey.

Author Posts
December 8, 2023 at 10:23 am #15024481

michaelV-87

I am trying to: switch back and forth between English and German

Link to a page where the issue can be seen: all pages

I expected to see: when I switch from German to English after the site loaded the first time everything works as expected, Menus are translated, Links work correctly and the English flag is displayed. When I click on the German flag now I expect to be in the German environment again with the German menu and links linking to the German pages.

Instead, I got: The page in German but still the English Menu linking to the pages in English and a German flag - the menu doesn't change languages

December 8, 2023 at 3:16 pm #15026901

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

I see that your theme is using AJAX, causing the page not fully to reload. This can result in issues with the correct elements being displayed, especially if viewing the page in German. To check this, you can reload the page (command/alt+R), and the correct elements should be loaded.

To ensure that the language filtering option is activated, go to WPML → Languages and scroll down to the Language filtering for AJAX operations section. Check if "Store a language cookie to support language filtering" is activated.

If the issue persists, try temporarily deactivating other plugins to see if any 3rd party plugins are affecting the behavior. If the problem persists, check if you can disable AJAX loading in your theme settings.

If that doesn't work, you'll need to contact the theme's author and invite them to join our Global Program to make their theme fully compatible with WPML. You can find more information about the Global Program at https://wpml.org/documentation/support/go-global-program/.

Please note that we have not tested your theme for compatibility yet. You can check the compatibility of your theme with WPML at https://wpml.org/theme/?wpv_view_count=119967&wpv-theme-category=0&wpv_post_search=Flora&wpv-wpcf-recommendation-flag=&wpv_filter_submit=Search.