Skip Navigation

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.

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by Osama Mersal 1 year, 3 months ago.

Assisted by: Osama Mersal.

Author Posts
December 10, 2023 at 8:53 am #15030655

petterH

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?

December 10, 2023 at 9:55 am #15030743

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

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:

/* Memory Limit */
define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M');

Best regards,
Osama

December 10, 2023 at 11:56 am #15031025

petterH

I tried, but it did not work, same result. I switched Maintenance mode off now.

I also increased the memory limit.

December 10, 2023 at 12:20 pm #15031049

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

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.

Best regards,
Osama

December 10, 2023 at 2:24 pm #15031319

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

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)

Best regards,
Osama

December 10, 2023 at 9:12 pm #15032227

petterH

Hi, no this did not make any difference.

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... 👍

Skärmbild 2023-12-10 213930.png
December 11, 2023 at 7:53 am #15033355

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for your update. The headers in the translation management menu may contain old templates that you don't use, but they exist in the database.

Please let me know if you need further assistance regarding the menu issue.

Best regards,
Osama

December 11, 2023 at 8:50 am #15034087

petterH

It works as expected now, thanks for your help!