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

Written by Dan Mossop

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.

Unleash the Power of Shortcodes on Your Divi Site!

Maximize the potential of your Divi site with the Divi Shortcode Enabler. Seamlessly integrate shortcodes into various Divi module fields for enhanced customization. Take control of your content display and design effortlessly.

About Dan Mossop

Dan is a Scottish-born web developer, now living in Brisbane with his wife and son. He has been sharing tips and helping users with Divi since 2014. He created Divi Booster, the first Divi plugin, and continues to develop it along with 20+ other Divi plugins. Dan has a PhD in Computer Science, a background in web security and likes a lot of stuff, 

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.