Last Updated on 2021-11-03 by Clay
When I used Polylang, the famous language switching plugin on WordPress, I was prone to appear on the mobile version of the English version that was not the default language, and I could not smoothly switch back to the default Chinese language.
After checking the Internet, many people said that this is common, because Polylang will automatically detect the visitor’s browser language preference, so it is very likely that pages in the same language will continue to be displayed.
As for the failure to switch to other languages on the homepage, it may be a bug. Many people have also submitted to the Polylang team.
This article focuses on how to turn off Polylang’s detection of browser language.
Turn off Polylang automatically dectects browser language setting
Go to WordPress backend > Languages > Settings:
Then set the “Detect browser language” option to Deactivate.
In this way, you should be able to switch the homepage language smoothly.
Take me as an example, since most of my website traffic comes from search engines, I do not worry about displaying the wrong language.
References
- https://stackoverflow.com/questions/59950656/polylang-language-switcher-is-not-working
- https://wordpress.org/support/topic/problem-with-switching-language-in-polylang/