Changing the Colors of the "Contact Form 7"-Style Button in Divi Switch

If you have installed Divi Switch plugin by Divi Space and enabled the "Style Contact Form 7" option, you may find that the button colors it produces are not to your liking. One way to override the colors is using CSS similar to the following:

.ds_style_cf7 .wpcf7-submit {
color: #333 !important;
background-color: #ddd !important; 
border-color: #555 !important;
}
.ds_style_cf7 .wpcf7-submit:hover { 
color: white !important;
background-color: blue !important; 
border-color:blue !important; 
}
The first block sets the button text color, background color and border colors, while the next block does the same for the button hover effect.

0 Comments

Submit a Comment

Comments are manually moderated and approved at the time they are answered. A preview is shown while pending but may disappear if your are cookies cleared - don't worry though, the comment is still in the queue.

Your email address will not be published. Required fields are marked *.

We may earn a commission when you visit links on our website.