Auto switch only for HomePage
Since the version 3.5 of Weglot plugin, the auto redirection feature works on all pages. Here is how to restrict it to the homepage only
Since version 3.5, the auto-redirect (auto-switch) feature works on every page. For example, with a French browser:
/is redirected to/fr//contactis redirected to/fr/contact
To restrict the auto-redirect to the homepage only:
// Add this using the "Code Snippets" plugin or directly in functions.php
add_filter( 'weglot_autoredirect_only_home', '__return_true' );Last updated