thewpstarter - contact form before after

Contact Form 7 (CF7) is a popular WordPress plugin which enables you to create and manage forms on your website.

You can add custom CSS styles to your Contact Form 7 forms by following these steps:

  • Access Theme File Editor -> Style.css
  • Theme Customizing -> Additional CSS
  • Use FTP and access Style.css
/* Contact Form 7 */

.wpcf7 {
     background: #bebebe;
     border: 2px solid #19035e;
     width: 100% !important;
     padding: 20px 20px 20px 50px !important;
 }
.wpcf7-form input[type="text"], 
.wpcf7-form input[type="email"], 
.wpcf7-form input[type="url"], 
.wpcf7-form input[type="password"], 
.wpcf7-form input[type="search"], 
.wpcf7-form input[type="number"], 
.wpcf7-form input[type="tel"], 
.wpcf7-form textarea {
    color: #19035e;
    width: 300px;
    padding: 12px 16px;
    border-radius: 3;
    border: 0;
	outline: 1px solid #19035e;
}
.wpcf7-form p {
    margin: 0 0 28px;
}
.wpcf7-text:focus, 
.wpcf7-textarea:focus {
    outline: 1px solid #19035e;
    outline-offset: 0;
}
div.wpcf7-mail-sent-ok {
    border: 0;
    background: #5471de;
    color: #fff;
    padding: 18px;
}
div.wpcf7-acceptance-missing,
div.wpcf7-validation-errors {
    border: 0;
    background: #f9443b;
    color: #fff;
    padding: 18px;
}
span.wpcf7-not-valid-tip {
    color: #f9443b;
}

.wpcf7-form .button {
    background-color: #14e2ae;
    border: 0;
    color: #fff;
    border-radius: 1px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 15px;
    width: auto;
    padding: 20px 42px;
    letter-spacing: 2px;
    font-size: 14px;
}
.wpcf7-form .button:hover {
    cursor: pointer;
    box-shadow: 0px 7px 16px -7px rgba(0, 0, 0, 0.4);
    border: 0;
}
2 comments
Leave a Reply

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

nineteen − 13 =

Web.com Site Builder Coral Draw - thewpstarter
You May Also Like

WordPress Beginner: are WordPress developers in demand?

Table of Contents Hide WordPress’s Market Share: Accessibility and Versatility: High Demand…

What does a WordPress developer need to know?

Table of Contents Hide Developer ResourcesCoding StandardsBlock EditorCommon APIsThemesPluginsREST APIWP-CLIAdvanced AdministrationWordPress PlaygroundHere…

Unleash the Power of White Label WordPress: A Complete Client Success Guide #1

Discover the power of WordPress white labeling! Explore the benefits, step-by-step installation,…

Understanding Plugins and Their Role in Website Customization: What is a Plugin in WordPress?

What is a Plugin in WordPress? WordPress core functionality is extended by…