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

This post may contain referral links which may earn a commission for this site

If you have installed Divi Switch 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.

Hundreds of new features for Divi
in one easy-to-use plugin

0 Comments

Submit a Comment

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