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 2 voices.

Last updated by Itamar 1 year, 11 months ago.

Assisted by: Itamar.

Author Posts
June 19, 2023 at 2:42 pm #13852581

stirlingA-2

Hi

I created the site in English, then added Hebrew. In settings, I have put language based on browser, however when it is accessed from a Hebrew browser in Israel the English version appears first. What am I missing?

thanks

June 19, 2023 at 3:20 pm #13852927

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

In WPML -> Languages -> Browser language redirect, you have selected the option 'Redirect visitors based on browser language only if translations exist'. According to what I've just checked, this works as expected. On my browser, which is set to show content in Hebrew, I typed your site's main URL in the address bar hidden link. And in a couple of seconds, I was redirected to the Hebrew version of the site hidden link. Please see the attached screenshot.

Please note that the redirection is according to the browser's setting and has nothing to do with the location. In other words, the user does not need to be in Israel (in your case).

Also, please be aware that the Browser language redirect feature of WPML by design only works once in a 24-hour window frame. We do this to allow visitors to still switch languages. If we always push back to the browser’s language, visitors will not be able to manually switch languages after WPML redirects them to the language set by their browser. Please read our guide about the Browser language redirect feature here.

https://wpml.org/documentation/getting-started-guide/language-setup/automatic-redirect-based-on-browser-language/

Please let me know if you have any further questions about this issue.

Regards,
Itamar.

2023-06-19_18-10-36.jpg
June 20, 2023 at 9:30 am #13857589

stirlingA-2

Hi Itamar

thanks for the reply.

I'm in Israel also, but the site isn't loading first in Hebrew for me. I've tried loading on incognito and with a different browser with cache cleared, and my friend who is also in Israel has English loading first.

I'm not sure why this is happening-Is there a way of forcing the site to load Hebrew first whatever the browser language or location?

thanks

Stirling

June 20, 2023 at 4:29 pm #13862007

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi, Stirling.

I can't see the problem you're describing. My Chrome browser's language for displaying content is Hebrew. The setting is 'Websites will show content in your preferred languages, when possible'. Please note that it differs from the setting 'This language is used to display the Google Chrome UI'. So again, I got the desired result. When I enter hidden link, I immediately get redirected to hidden link. Please see the attached screenshot. I also took a video while I was trying this. Please watch it here.

hidden link

Regarding your question about fording the site to load in a specific language by location. There are two third-party plugins you can use for that.

1. https://wpml.org/plugin/wpml-redirect-based-on-ip-country/ Premium plugin.

2. https://wpml.org/plugin/ip2location-redirection/ Free plugin.

It is also important for me to bring to your attention the following article we have about How Browser Language Redirect Affects Google Indexing.

https://wpml.org/documentation/getting-started-guide/language-setup/automatic-redirect-based-on-browser-language/how-browser-language-redirect-affects-google-indexing/

It is, of course, up to you to decide if you want to implement the browser redirect feature.

Please let me know if this information is helping to solve the issue.

2023-06-20_19-09-14.jpg