Skip Navigation

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.

This topic contains 3 replies, has 3 voices.

Last updated by Raja Mohammed 3 years, 6 months ago.

Assisted by: Raja Mohammed.

Author Posts
December 3, 2021 at 12:13 pm #10121147

mortenJ-11

I need Danish in Danmerk as default language. I use IP redirection plugin for that. Because your browser language option is not enough for me.

But When I make these settings then my language switcher doesn't work for home page. Because when I wants to choose English then it again goes to Danish. So what settings I need to do for that. Please check my plugin settings print.

auto-lang-setup.png
December 3, 2021 at 1:35 pm #10121959

Laura
WPML Supporter since 05/2018

Languages: English (English ) Italian (Italiano )

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

Hi, thanks for contacting us.

This isn't really a WPML issue. You set a permanent 301 redirect to your Danish homepage when you are in Denmark, so as long as you are in Denmark you will never be able to load the English homepage.

Please contact your plugin's support to know how to handle this.

December 7, 2021 at 9:27 am #10138371

mortenJ-11

Thanks for reply.
So how can I load Danish homepage with WMPL in Denmark. If I don't use any external IP plugin. Because in WPML its only detect once a day by browser language.

December 7, 2021 at 12:28 pm #10139705

Raja Mohammed
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello there.

I hope you are using a third-party plugin (https://wordpress.org/plugins/ip2location-redirection/) to achieve the redirect. I recommend checking with the plugin support for any other possible workaround, However, I would say what you are experiencing is expected behaviour since the plugin always redirects the users based on IP and ignore the language switcher.

WPML does not support IP based redirect for the languages. You can try other compatible plugins which may be helpful for your requirement https://wpml.org/plugin/wpml-redirect-based-on-ip-country/

Regards
Raa