Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
If you're experiencing issues with the WPML language switcher not appearing in your menu after enabling it in the settings, and the settings disappear after saving, the problem might be related to insufficient WordPress memory limit or specific menu settings.
Solution:
1. Increase the WordPress memory limit to at least 256M. You can do this by adding the following code to your wp-config.php file:

/* Memory Limit */<br />define('WP_MEMORY_LIMIT', '256M');

Add this code above the line /* That's all, stop editing! Happy blogging. */.
2. Ensure your menu is fully translated as per the WPML guide on translating menus, which can be found here: Translating Menus Guide.
3. Add the language switcher in WPML -> Languages and verify if the issue is resolved.
4. If the language switcher still does not appear, it might be hidden due to CSS classes such as "desktop-link-hide". Consult with your website's developer or the person who manages your site's styles to adjust this.

If these steps do not resolve your issue or if the solution seems outdated or not applicable to your case, we highly recommend checking related known issues at WPML Known Issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If needed, please open a new support ticket at WPML Support Forum for further assistance.

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.

This topic contains 2 replies, has 0 voices.

Last updated by Carlos Rojas 4 days, 4 hours ago.

Assisted by: Carlos Rojas.

Author Posts
January 10, 2025 at 12:14 pm #16581898

maxv-17

Background of the issue:
I am trying to enable the language switcher in WPML settings, but it is not saved and does not appear in the menu. I have tried translating all parts, republishing the menu, and adding the language switcher without a flag. The issue can be seen on this page: hidden link

Symptoms:
The language switcher does not appear in the menu after being enabled in the settings. After saving the settings, they disappear.

Questions:
Why does the language switcher not appear in the menu after enabling it?
Why do the settings disappear after saving?

January 10, 2025 at 12:18 pm #16582005

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Hello,
Thank you for contacting us

1.- Please increase the WP memory Limit. Minimum requirements are 128Mb: https://wpml.org/home/minimum-requirements/
You can add this to wp-config.php to increase WP memory:`

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

- Add it above the line /* That's all, stop editing! Happy blogging. */

You can double-check the WordPress memory limit in WPML -> Support

2.- Once the memory limit is increased, make sure the menu is translated as described in this guide: https://wpml.org/documentation/getting-started-guide/translating-menus/
Then add the language switcher in WPML -> Languages and double-check if the issue disappeared.

Could you tell me the results of the steps described above?

Regards,
Carlos

January 13, 2025 at 8:53 pm #16590726

maxv-17

Hi Carlos,

thanks for your answer. The script has been added to the WP-config file, but it doesn't seem to work. I added the language switcher via 'languages', but it does not appear in the menu. If I add it to the footer section it works.

Do you have any other things I can try?

Regards,

Max

2025-01-13 21_51_51-Talen ‹ Loomans Osteopathie — WordPress.png
January 14, 2025 at 10:44 am #16592360

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Hi Max,
Thank you for your feedback

I would like to take a closer look at the site configuration. Your next answer will be private and you will find the fields to securely share the access credentials to the site.

Please confirm you created a site backup that you can restore if necessary before sharing the credentials.

January 15, 2025 at 11:00 am #16596727

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Thank you for sharing the credentials requested.

The language switcher is in the menu HTML, but a class is added "desktop-link-hide" that hides it. Please check with the person who added the styles to the site how to not add this class to the language switcher.

January 21, 2025 at 4:47 pm #16619992

maxv-17

Hi Carlos,

thanks a lot for your help. Found the issue and the problem is solvend now

January 21, 2025 at 8:14 pm #16620468

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Great!

Please don't hesitate to contact us if you need our help in the future with WPML.
Have an excellent day!