Skip to content Skip to sidebar

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

Problem:
The client asked if when accessing the site from Spain, it would open in the Spanish or English version.
Solution:
If you are experiencing this, you should know that WPML only offers redirection based on browser language, not geolocation. Therefore, you cannot redirect users based on their current location. For example, if Chrome is set to English, the visitor will be redirected to the English version of the website.
To retarget based on location, you will need a geolocation plugin. You can check our list of compatible plugins here.
Also, here you can find some existing tickets related to the same topic:

The solution could be irrelevant, either because it is outdated or because it does not apply to your case. If so, we suggest opening a new support ticket. We also strongly recommend reviewing the related known issues here, checking the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins.

If you need additional assistance, please contact us at the 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 1 reply, has 2 voices.

Last updated by Mihai Apetrei 1 year, 5 months ago.

Assisted by: Mihai Apetrei.

Author Posts
February 26, 2024 at 8:49 am #15342748

Tarun

Okay, Thanks for sharing this.

We have one more query: when someone accesses the site from a Spain location, the site will open in the Spanish version or it will open in the English version.

Thanks,

February 26, 2024 at 8:51 am #15342769

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

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

Hi there.

The only redirection WPML offers is related to the browser's language (https://wpml.org/documentation/getting-started-guide/language-setup/automatic-redirect-based-on-browser-language), not Geolocation, so you can't redirect users based on their current location.

Example of how browser-language redirection works: Chrome is set to English, the visitor is redirected to the English version of the website.

To redirect based on location, you would need a Geolocation plugin for that.

You can check our list of compatible plugins here:
https://wpml.org/plugin-functionality/geotargeting/

Here you can also find some existing tickets related to the same topic:

- https://wpml.org/forums/topic/i-wants-to-auto-translate-according-to-country/
- https://wpml.org/forums/topic/country-based-redirect/

I hope that you will find the information above helpful 🙂

Kind regards,
Mihai Apetrei