Skip to content Skip to sidebar

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

Problem:
You want to enable browser language detection on the home page but not on other pages.
Solution:
We recommend implementing a custom solution using WPML hooks, as the browser language redirect option in WPML can only be enabled for the entire site. You can use the wpml_enqueue_browser_redirect_language hook for this purpose. For more hooks, please check the full list at WPML Hooks Reference.

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. If you still need 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 replies, has 0 voices.

Last updated by Andrey 1 month ago.

Assisted by: Andrey.

Author Posts
March 12, 2026 at 1:57 pm #17892531

felixL-7

To avoid the SEO implications but still greet new visitors with the right language, we would like to enable browser language dedection on teh home page but not on all other pages

March 12, 2026 at 8:35 pm #17893903

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

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

Thank you for contacting WPML support.

As you may know, the Browser language redirect option in WPML can only be enabled for the entire site.

If you need more customized behavior, you may consider implementing a custom solution using one of the available WPML hooks. For example:
https://wpml.org/wpml-hook/wpml_enqueue_browser_redirect_language/

You can find the full list of available hooks here:
https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference/