Home›Support›English Support›[Resolved] Menu language switcher doesn't appear on the default language home page
[Resolved] Menu language switcher doesn't appear on the default language home page
This thread is resolved. Here is a description of the problem and solution.
Problem: The client reported that the language switcher was not displaying on the parent language front page, although it was appearing on the translated front pages. The client also noticed a mismatch in the list of header templates, with two 'Matting Global Header' items showing and both having the wrong menu selected when edited from the WPML end.
Solution: We recommended translating the header template for the home page to see if that resolves the issue. To do this, the client should go to the Divi Theme Builder and ensure that the header templates are correctly translated.
If you're experiencing a similar issue with the language switcher not appearing on your site's front page, we recommend translating the header template for your home page. You can do this by navigating to your Divi Theme Builder and checking the translations for accuracy.
If this solution doesn't seem relevant to your situation, please open a new support ticket with us, and we'll be happy to assist you further.
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.
Another issue, probably unrelated, I encountered now is that the language switcher does not show on the parent language front page. It does appear on the translated front pages, but the parent language is not listed. I use a different menu on sub-pages and there it works fine. But on the main menu on the front page it does not work. Do you know what could cause this issue?
1) The site is in the "Under Construction" mode, so I couldn't check it. Please try the following steps:
1- Go to WPML-> Languages-> Menu Language Switcher section
2- Delete the language switcher
3- Create a new one
4- Select the home page menu
5- Save the switcher
2) It's unrelated to the issue, but according to your Debug.info, the WP memory limit needs to be increased. PHP memory is fine, but WordPress uses 40Mb as default. The minimum requirements for WPML are 128 MB. (Kindly check this page https://wpml.org/home/minimum-requirements/)
You can increase it by adding the following code in your wp-config.php file right before the /* That's all, stop editing! Happy publishing. */ line:
Thanks for your update. I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP) Preferably to a test site where the problem has been replicated.
Your answer will be private, meaning only you and I can access it.
❌ Please backup your database and website ❌
✙ I would need your permission to de-activate and re-activate the Plugins and the Theme and change configurations on the site. This is also a reason the backup is critical.
✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.
Thanks for the access details. I added a footer language switcher, which worked correctly on the default language home page. (hidden link)
I noticed that header templates are not translated. Would you please translate the header template for the home page and check if that would help? (hidden link)
However, I think I solved it now by re-creating the menu and adding a switcher to the new menu instead. Now it shows up on all languages 🙂
But I noticed something odd though. In the list of header templates, there are two Matting Global Header items and there is only one in Divi Theme Builder. And both the templates have the wrong menu selected ("Matting Interior" instead of "huvudmeny") when you edit from the WPML end. So there seems to be some mismatch there... It is odd because on the translated headers the switcher appears fine, but Swedish is not an option... But since it works now, maybe we can drop this... 👍