Site logo

Archived topic

How to make CTA buttons responsive?

9 replies · Started by Jarno on September 15, 2020

Viewing posts 1–10 of 10

How can i make the standard button responsive when people hover on it?

Hi there,

Can you explain a little more ? What should happen when the user hovers over it ?

Like a change in color, so the visitor knows it's a clickable box. Right now you only know the button works when you click on it.

You can set the Hover color in Customizer > Colors > Buttons.

If that doesn't work then the button is being added outside of the theme. Send me a link of the site so i can take a look.

I linked my website.

At the top you see a button. I changed the hover background color to yellow, but it's the same when I hover over the button.

What's the problem here?

The green CTA button? Above the table of contents?

Try this CSS:

.wp-block-button .has-vivid-green-cyan-background-color:hover {
    background-color: red;
    transition: background-color 0.3s;
}

If you want better styling control of buttons or special headings you may want to try our GenerateBlocks plugin:

https://wordpress.org/plugins/generateblocks/

I added the css with the plugin and it works. Thank you for the css code!

Have a great day.

Glad to be of help

This archived topic is closed to new replies.