Contact Form 7 Submit Button color

Hello,

I am trying to change the color of the submit button in contact form 7 but it does not work. I browsed this forum and put this code in the custom css. The text color changes but the background color does not change, no matter what I try.

input.wpcf7-form-control.wpcf7-submit {
color: #ffffff;
background-color: #84cdd7;
border-radius: 30px;
!important;
}
input.wpcf7-form-control.wpcf7-submit:hover {
background-color: #1ecd97;
color: #fff;
}

Hi Vivien,

Thanks for reaching out.

For that, you can use !important, along with background instead of background-color. Example,

background: #84cdd7 !important;

This make sure all aspect of background styling is overriden.

Hope this helps.

Yesss! That was it :slight_smile:
Thank you so much for your help!

You’re most welcome!

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