Skip Navigation

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

Problem:
You are trying to set up WPML to redirect users based on their geolocation and hide untranslated pages from users.
Solution:
We do not support redirection based on geolocation directly through WPML. Instead, you will need a geolocation plugin. We recommend checking our list of compatible plugins at https://wpml.org/plugin-functionality/geotargeting/.
For further insights, you might find these discussions helpful:

If this solution does not apply to your case, or if it seems 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. Should you need further assistance, 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 1 reply, has 2 voices.

Last updated by Mihai Apetrei 8 months, 2 weeks ago.

Assisted by: Mihai Apetrei.

Author Posts
October 11, 2024 at 7:19 am #16277761

petraM-5

Background of the issue:
I am trying to set up WPML by geolocation for my site hidden link. I want customers from the CZ to be automatically redirected to the CZ page. I also want pages that we haven't translated to not be shown to them.

Symptoms:
No specific issue or error message mentioned.

Questions:
How can I set up WPML to redirect users based on their geolocation?
How can I hide untranslated pages from users in WPML?

October 11, 2024 at 7:51 am #16277855

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, not Geolocation, so you can't redirect users based on their current location.

You'd need a Geolocation plugin to do 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