Skip Navigation

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.

Elementor users - please update WPML to the latest version to maintain compatibility. More details here - https://wpml.org/changelog/2024/12/wpml-4-6-15-critical-update-for-elementor-sites/
Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 -
- 13:00 – 15:00 13:00 – 15:00 13:00 – 15:00 13:00 – 15:00 13:00 – 15:00 -

Supporter timezone: Europe/Madrid (GMT+01:00)

This topic contains 6 replies, has 0 voices.

Last updated by Carlos Rojas 20 hours, 27 minutes ago.

Assisted by: Carlos Rojas.

Author Posts
December 20, 2024 at 10:58 am #16533422

nicolaH-2

Background of the issue:
I have set up a separate navigation menu just for the languages on my site under development. I am using Elementor to create a header for the entire site, which includes this language menu. I have configured the standard color to be black, and the hover and active color to be red.

Symptoms:
The hover effect for the language menu is not working as expected.

Questions:
How can I add a hover effect to the language menu using Elementor?
Why is the hover effect not working for the language menu?

December 20, 2024 at 1:52 pm #16534501

Carlos Rojas
Supporter

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

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

Hello,
Thank you for contacting us

1.- In this case it is recommended to add the CSS in WPML -> Languages -> Language Switcher as described in this guide: https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/how-to-fix-styling-and-css-issues-for-the-language-switchers/#customizing-a-language-switcher-with-css

2.- Please don't forget to create a full site backup and update the WPML plugins to the latest version in Plugins -> Add new -> Commercial tab

3.- Last but not least, 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', '128M');

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

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

Kind regards,
Carlos

December 20, 2024 at 3:59 pm #16534901

nicolaH-2

Hi Carlos, thanks for your help.

I have added this CSS:
.wpml-ls-menu-item {
color: #000000;
}
.wpml-ls-current-language {
color: #e40028;
}

But still it is not working.
I would like to have the standard color in black, the active language color in red (#e40028) and the hover color in red as well.

I have also set the memory limit to 256M and updated all plugins.

Any other suggestions?

I am off for the weekend now, would really appreciate your comment until monday!
Thanks a lot! BR Nicola

December 23, 2024 at 10:26 am #16539899

Carlos Rojas
Supporter

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

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

Hi Nicola,

I want to take a closer look at the site configuration. I have set your next message private so you can securely share the access credentials to the site.

Please don't forget to create a full site backup before sharing the credentials.

December 23, 2024 at 10:35 am #16539938

nicolaH-2

Hi Carlos, thank you very much for your reply.
And this is the problem: I can not give you the access to the page as this is a highly secured multisite page of a large european company. I am not allowed to and do not have the rights to do so.
What else could we try?

December 23, 2024 at 10:55 am #16539982

nicolaH-2

I have set up a screencapture video, that shows the problem: hidden link

December 23, 2024 at 3:49 pm #16540950

Carlos Rojas
Supporter

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

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

Hi there,
Thank you for sharing the video.

I understand you can't share the access credentials to the live site but I can't find a solution without accessing the site. Could you create a staging site with a copy of the live site and share the credentials? Or could you create a new WordPress installation with the same theme and language switcher?