Skip Navigation

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

Problem:
The client needs help changing the hover color of the text in the language menu dropdown, as the text turns white and becomes invisible when hovering over the Spanish option.
Solution:
If you're experiencing an issue with the hover color of your language menu dropdown text, we recommend you add custom CSS to your site. Here's how you can do it:
1. Navigate to your site's backend.
2. Go to Appearance > Customizer > Custom CSS.
3. Add the following code, replacing 'red' with your color of choice or a hexadecimal color code:

.sub-menu > li.wpml-ls-item a:hover {<br />    color: red !important;<br />}

4. Save your changes.
This should change the hover color of the text in the language menu dropdown to the color you specified.

If this solution doesn't look relevant to your issue, please open a new support ticket with us.

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 1 reply, has 2 voices.

Last updated by Mihai Apetrei 12 months ago.

Assisted by: Mihai Apetrei.

Author Posts
January 15, 2024 at 9:57 pm #15187119

arranR

Hello,

I've tried writing some custom css without any luck, please can I have help changing the hover colour of the text only on the language menu dropdown. When you over over Spanish, the text goes white and disappears.

Screenshot 2024-01-15 at 21.56.12.png
January 15, 2024 at 11:18 pm #15187239

Mihai Apetrei
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+02:00)

Hi there.

Please go into your site's backend > Appearance > Customizer > Custom CSS > add the following code (change red into any of your color choice or hexadecimal color code) and save (our example uses the red color):


.sub-menu > li.wpml-ls-item a:hover {
    color: red !important;
}

That should do it.

Mihai Apetrei