Change the hover background color for buttons

Hi,
I was unable to find the answer to my question through searching the forum.
Can you suggest how I can change the hover background-only (not text) color on buttons.
I used the following CSS code, but that only changed the text hover color:
a.wp-block-button__link.has-background:hover {
color: #00fa50;
}
My website is https://enjoyfeelingalive.com
Specifically, I am attempting to change the “Set Up Consultation” call-to-action buttons that link to my Contact page.
Thank you,
Kevin

Hello Kevin,

Thanks for writing in!

To resolve your issue, please have your code updated and use this:

a.wp-block-button__link.has-background:hover {
    background-color: #00fa50 !important;
    color: black;
}

We would love to know if this works out for you.

Awesome! That worked. Thank you so much!

Glad that we could be of help :slight_smile:.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.