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
I don't answer or check forum DMs, please just post on the forum.
Before you post:
Use the Search Feature. Maybe there is already a solution to your issue.
1. Update Lay Theme and all Lay Theme Addons
2. Disable all Plugins
3. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code ", click "Save Changes"
4. Now see if your problem solved itself
5. Go here, see if your problem is listed here:
Troubleshooting
When you post:
1. Post a link to where the problem is
2. If the problem is difficult to explain, post screenshots / link to a video to explain it