[Resolved] Language switcher is not working in English language
This thread is resolved. Here is a description of the problem and solution.
Problem:
The client reported that the EN flag switcher was not functioning correctly at all times.
Solution:
We identified that the issue was due to a conflict with the WPML switcher snippet. We recommended the following steps:
1. Disable the WPML Switcher snippet. 2. Clear all types of caches, including server, browser, and plugin caches. 3. Visit Settings >> Permalinks in the WordPress dashboard and resave the settings.
Additionally, if the site is hosted on One.com and uses Hostinger must-use plugins, we advise:
1. Remove the Hostinger MU plugins from
/wp-content/mu-plugins/
. 2. Clear all types of caches again. 3. Check if the issue is resolved.
If these steps do not resolve the issue or if the solution becomes outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.
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.
Welcome to the WPML support forum. I will do my best to help you resolve the issue.
The language switcher was not working as expected due to a conflict with the WPML switcher snippet. It is now functioning correctly after disabling the snippet. Please clear all caches and check again to confirm everything is working as expected.
Thank you for the updates. I forgot to mention that I tested this on the staging site.
Could you please check whether the issue still exists on the staging site as well? That will help us confirm if the problem is consistent across environments.
First of all, thanks for replying so fast every time, I really appreciate it. And indeed, on the staging site the issue is gone. So what do we have to do to get this done at the main site?
Thank you for the updates. Please try the following steps on the live site:
- Disable the WPML Switcher snippet
- Clear all types of caches (server, browser, plugin, etc.)
- Visit Settings >> Permalinks, and resave the settings.
After that, check whether the issue still exists. Refer to the attached image for more details.
It's not on the same hosting, no. The staging site is on a Hostinger server and the other one on a One.com server. But One.com works with a Performance Cache plugin which I already tried. Server-side there are no options other than the File Manager which I can use to clear anything. But I don't know what.
I've indeed consulted the hosting but above is what they say.
I've upgraded all plugins on the live site and made a full site backup, the issue still persists.
Thank you for the feedback. This issue may be caused by a compatibility conflict. To help us confirm, please try the following steps if possible:
a) Backup your site first[Mandatory]
b) Switch for a moment to a WordPress default theme like 2025
c) Deactivate all the plugins that are not related to WPML
d) Then check whether the issue exists or not
e) If the issue is gone, activate the plugins as a group of three or four to find which one has an interaction issue
f) Switch back to the original theme of the site
Thank you for the updates. I requested these steps to make sure the bug exists on the live site in a minimal setup, because it is working fine in the staging site: hidden link
Have you switched to a default 2025 theme after deactivating all other plugins except Elementor?