Polylang - Fix for homepage not switching language / translation
-
This took me multiple hours to figure out because the solution polylang provides by itself doesn't work here or with Lay Theme:
If you have the problem that your homepage doesn't switch the language but all other pages work. Like, German is your main language and English your second language, the switch always shows the German translation – unimportant what you do:
Do NOT set the homepage under the ‘Reading settings’ panel.
Leave it as is and set your Lay Theme homepage via the usual way in the Customize panel.
Then it works!
PS: It also works with any page being selected in the ‘Reading settings’ – just don't select the actual homepage. The Lay Theme setting overrules that setting anyways, but if you set both ways with the same page, it breaks polylang for the homepage.
-
oh damn!
thanks for the heads up, i will try and fix this
-
WONDERFUL!!! Thank you for posting this, I had the same issue and it worked <3
-
R RenataMGr referenced this topic on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login