How To Change Css Of Contact Form 7 In WordPress

Web Development Software

Customizing the CSS of the Contact Form 7 plugin in WordPress is an effective method to customize the appearance of your website’s contact form. As a web developer, I recognize the significance of tailoring forms to complement the website’s overall design. In this article, I will provide step-by-step instructions on how to modify the CSS of Contact Form 7 to add your unique touch.

Step 1: Accessing the CSS

The first step is to locate the CSS file that controls the styling of your Contact Form 7. In your WordPress admin panel, go to “Appearance” and then “Editor”. On the right-hand side, you will find a list of theme files. Look for the file named “style.css” or “custom.css”. This is where you will make your CSS modifications.

Step 2: Identifying the Contact Form 7 Classes

To change the CSS of Contact Form 7, you need to identify the specific classes that are used by the plugin. Open your website in a browser and inspect the contact form using the browser’s developer tools. Look for the HTML elements that make up the form and note down their class names.

For example, if your contact form has an input field for the name, the class name might be “wpcf7-form-control wpcf7-text”. Similarly, the submit button might have a class of “wpcf7-form-control wpcf7-submit”. These class names will be used to target the elements in your CSS.

Step 3: Writing the Custom CSS

Now that you have identified the class names, you can start writing your custom CSS. Open the “style.css” or “custom.css” file in the WordPress editor and add your CSS code. Remember to write your CSS rules based on the class names you noted down in the previous step.

For example, if you want to change the background color of the input fields, you can use the following CSS code:

.wpcf7-form-control {
background-color: #f1f1f1;

Feel free to experiment with different CSS properties to achieve the desired look for your contact form. You can change the font style, color, padding, and much more. Remember, the goal is to personalize the form to match your website’s branding.

Step 4: Saving and Testing

Once you have made your CSS modifications, click on the “Update File” button to save your changes. Now, go back to your website and refresh the page with the contact form. You should see the updated styling applied to the form.


Customizing the CSS of Contact Form 7 in WordPress allows you to add your personal touch and make the form blend seamlessly with your website’s design. By following the steps outlined in this article, you can easily modify the CSS and achieve the desired look for your contact form. Have fun experimenting with different styles and make your contact form truly unique!