Skip Navigation

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

Problem:
The client was experiencing issues with the hover effect not working as expected for a language menu in Elementor. Despite setting the standard color to black and the hover and active color to red, the hover effect was not applying correctly.
Solution:
We recommended the following steps:
1. Add the necessary CSS in WPML -> Languages -> Language Switcher Options -> Additional CSS. The specific CSS to use is:

header ul li.wpml-ls-current-language a span.wpml-ls-display, header ul li a span:hover{<br />  color: #e40028;<br />}

2. Ensure to create a full site backup before making changes and update the WPML plugins to the latest version.
3. Increase the WordPress memory limit to at least 128MB by adding the following line to wp-config.php:

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

Place it above the line /* That's all, stop editing! Happy blogging. */.
For further guidance on customizing the language switcher with CSS, visit how to fix styling and CSS issues for the language switchers.

If this solution does not resolve your issue or seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket.

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 11 replies, has 0 voices.

Last updated by Carlos Rojas 1 day, 6 hours ago.

Assisted by: Carlos Rojas.

Author Posts
January 7, 2025 at 12:02 pm #16569373

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 Nicola 🙂