Site logo

Archived topic

Button hover gives text the color of link, how to change it to white?

5 replies · Started by Jarno on October 29, 2020

Viewing posts 1–6 of 6

When I hover over a button, the text becomes blue. This is the color of every link on my website so that's correct.

But i don't want the color of the text to be blue on a button. I set the buttons settings to white as text color, but it doesn't help.

How can i fix this?

Hi there,

i am not seeing that issue on your site - can you try clearing your browser cache? Or provide me a screenshot where i can see the button issue.

I cleared my browser cache, but nothing changed.

Try adding this CSS:

.wp-block-button__link:active, .wp-block-button__link:focus, .wp-block-button__link:hover, .wp-block-button__link:visited {
    color: #fff !important;
}

You're a hero David! It works perfectly, just as it should do.

Have a great day.

Glad to hear that

This archived topic is closed to new replies.