Skip to content Skip to sidebar

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

Problem:
The client added a language switcher in the header using Elementor Pro, set to show only one language without a flag. It functions correctly when the website is in English, but when switching to French, it only displays the French option, preventing switching back.
Solution:
We first asked the client how the language switcher was implemented in the header to understand the setup. We suspected the issue might be related to the 'Hostinger Preview Domain' plugin, known to interfere with WPML language switching. We recommended disabling this plugin to see if it resolves the issue. After further investigation, we confirmed that the language switcher was functioning correctly in both languages. If you're experiencing similar issues, we recommend checking if any temporary domain usage plugins are active and disabling them. Additionally, ensure your implementation method in Elementor is consistent with WPML's best practices.

Please note that this solution might be outdated or not applicable to your specific case. 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 at WPML support forum.

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 6 replies, has 0 voices.

Last updated by Dražen 3 weeks, 4 days ago.

Assisted by: Dražen.

Author Posts
March 30, 2026 at 2:23 pm #17936980

adsT

I added the language switcher in a band in the header over the menu. I set it up to show only one language and no flag. When I go test it on the website, it works when the website is in English, but then when I switch to French, it only displays the French option, with no possibility to switch.
I also have it in the footer, and there it works perfectly

April 1, 2026 at 7:24 am #17941867

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

Could you please explain how you added the language switcher in the header?

For example, are you using:

- the regular WPML menu switcher
- a widget inside a template
- or a shortcode

Since it works correctly in the footer, it’s most likely related to how it was implemented in the header.

Please let me know.

Best regards,
Dražen

April 1, 2026 at 3:21 pm #17943793

adsT

I added the widget to the header from Elementor pro

Screenshot 2026-04-01 at 11.19.46.jpg
April 2, 2026 at 6:36 am #17944903

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

thanks.

We’ve seen similar issues before, and in those cases it was caused by the Hostinger Preview Domain plugin.

This plugin is meant for temporary domain usage during development, and it can interfere with WPML language switching.

Please try disabling this plugin and check if the issue is resolved. If needed, you can also contact your hosting support and report this behavior.

Let me know how it goes.

Best regards,
Dražen

April 2, 2026 at 4:51 pm #17946688

adsT

Thank you for that,

I only found this plugin: "Hostinger Easy Onboarding," and I have deactivated it.
Unfortunately, the issue is persisting.

April 3, 2026 at 5:28 am #17947176

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

please share the access details of your website, so I can log in and take a look.

I’m enabling a private message for the following reply.

We have strict policies regarding privacy and access to your information.

Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/


- Please backup the site files and database before providing us access. 

- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.



Thanks,
Drazen

April 7, 2026 at 5:33 am #17952531

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

Thanks.

I checked your website and the language switcher appears to be working correctly in both languages. You can see it here:
hidden link

Could you please confirm and share the exact steps to reproduce the issue if it still occurs?

Best regards,
Dražen