{"id":84336,"date":"2018-03-14T05:26:44","date_gmt":"2018-03-14T09:26:44","guid":{"rendered":"https:\/\/www.templatemonster.com\/help\/?p=84336"},"modified":"2018-03-14T05:27:23","modified_gmt":"2018-03-14T09:27:23","slug":"how-to-style-contact-form-7-forms-in-wordpress","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/how-to-style-contact-form-7-forms-in-wordpress.html","title":{"rendered":"How to style Contact Form 7 forms in WordPress"},"content":{"rendered":"<p>One of the main benefits of making a website is that you can always be accessible to the visitors\/customers. Appealing Contact Form is a great opportunity to make that trick.<\/p>\r\n<p><strong>Contact Form 7<\/strong> is one of the best choices for that.<\/p>\r\n<p>The popularity of <strong>Contact Form 7 plugin<\/strong> is enormous according to its flexibility, ease of use and simple implementation. However, there is nothing perfect and the plugin has its drawbacks.<\/p>\r\n<p>By default the Contact Form 7 plugin does not style its forms, and though looks a bit simple.<\/p>\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress0.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress0.png\" alt=\"\" width=\"824\" height=\"628\" class=\"alignnone size-full wp-image-84337\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress0.png 824w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress0-150x114.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress0-300x229.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress0-768x585.png 768w\" sizes=\"(max-width: 824px) 100vw, 824px\" \/><\/a><p> Hardly surprising, that we insist on setting high standards when it is concerned with our reputation or business. <\/p>\r\n<p>The website is the face of its owner and it is necessary to achieve a flawless result.<\/p>\r\n<p>And now, we will learn how to deal with lack of styles by adding your own styles to the form and make it really attractive and catch visitor&#8217;s eye immediately.<\/p>\r\n\r\n<h3 class=\"custom\">Where to add your custom CSS rules?<\/h3>\r\n\r\n<p>We can do it easily by adding simple CSS rules under <strong>Appearance -> Customize -> Additional CSS<\/strong> in your admin panel.<\/p>\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress1.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress1.png\" alt=\"\" width=\"1024\" height=\"407\" class=\"alignnone size-full wp-image-84338\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress1.png 1024w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress1-150x60.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress1-300x119.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress1-768x305.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a>\r\n<h3 class=\"custom\">How to add styles to the whole form?<\/h3>\r\n<p>Let&#8217;s start with basics. The top-level element of contact form has <strong>wpcf7<\/strong> class. To style the whole contact form, add style rules for that class selector. It will add background color and border to the whole form.<\/p>\r\n<pre class=\"brush:css\">.wpcf7 {\r\n    background-color: #eaf6ff;\r\n    border: 7px solid #0f80be;\r\n}<\/pre>\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress2.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress2.png\" alt=\"\" width=\"869\" height=\"656\" class=\"alignnone size-full wp-image-84339\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress2.png 869w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress2-150x113.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress2-300x226.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress2-768x580.png 768w\" sizes=\"(max-width: 869px) 100vw, 869px\" \/><\/a>\r\n\r\n<p>As you see, there are some spacing issues, so let&#8217;s add the padding to the form:<\/p>\r\n\r\n<pre class=\"brush:css\">div.wpcf7 {\r\n    padding: 3% 5% 3% 5%;\r\n}<\/pre>\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress3.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress3.png\" alt=\"\" width=\"860\" height=\"698\" class=\"alignnone size-full wp-image-84340\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress3.png 860w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress3-150x122.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress3-300x243.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress3-768x623.png 768w\" sizes=\"(max-width: 860px) 100vw, 860px\" \/><\/a>\r\n\r\n<h3 class=\"custom\">How to add styles to the individual fields?<\/h3>\r\n<p> Great, it looks much better now. Let&#8217;s add styles to <strong>individual fields<\/strong>. The most common types of fields are <strong>text, email, and textarea<\/strong> so we add a style rule for them<\/p>\r\n<pre class=\"brush:css\">.wpcf7 input[type=\"text\"],\r\n.wpcf7 input[type=\"email\"],\r\n.wpcf7 textarea {\r\n    background-color: #fff;\r\n}<\/pre>\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress4.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress4.png\" alt=\"\" width=\"862\" height=\"697\" class=\"alignnone size-full wp-image-84341\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress4.png 862w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress4-150x121.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress4-300x243.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress4-768x621.png 768w\" sizes=\"(max-width: 862px) 100vw, 862px\" \/><\/a>\r\n<p>One of the more common requests is to adjust the <strong>width<\/strong> of the fields, so with the codes below, we will extend the areas to desired ones.<\/p>\r\n<pre class=\"brush:css\">.wpcf7-textarea {\r\n    width: 90%; \r\n} \r\n\r\n.wpcf7 input {\r\n    width: 50%;\r\n}\r\n\r\n.wpcf7-text {\r\n   width: 50%;\r\n}<\/pre>\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress7.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress7.png\" alt=\"\" width=\"856\" height=\"697\" class=\"alignnone size-full wp-image-84344\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress7.png 856w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress7-150x122.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress7-300x244.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress7-768x625.png 768w\" sizes=\"(max-width: 856px) 100vw, 856px\" \/><\/a>\r\n<h3 class=\"custom\">How to edit label styles?<\/h3>\r\n<p> Moreover, we can adjust color, font-size, font-family etc of <strong>labels<\/strong> with the following CSS:<\/p>\r\n\r\n<pre class=\"brush:css\">.wpcf7 label {\r\n    color: #008287;\r\n    font-size: 20px;\r\n    font-weight: bold;\r\n}<\/pre>\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress5.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress5.png\" alt=\"\" width=\"790\" height=\"747\" class=\"alignnone size-full wp-image-84342\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress5.png 790w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress5-150x142.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress5-300x284.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress5-768x726.png 768w\" sizes=\"(max-width: 790px) 100vw, 790px\" \/><\/a>\r\n<h3 class=\"custom\">How to add styles to submit button?<\/h3>\r\n<p>Let&#8217;s also learn how to edit the background and border color of submit button both for active and hover view:<\/p>\r\n\r\n<pre class=\"brush:css\">.wpcf7 input[type='submit'] {\r\n    color: #ffffff;\r\n    background-color: #008287;\r\n\tborder: #008287; \r\n}\r\n\t   \r\n.submit:hover, input[type='submit'].wpcf7-submit:hover {\r\n    color: #ffffff;\r\n    background-color: #3b5998;\r\n    border-color: #3b5998; \r\n}<\/pre>\r\n<a class=\"darkbox\" href=\"\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress6.png\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress6.png\" alt=\"\" width=\"845\" height=\"746\" class=\"alignnone size-full wp-image-84343\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress6.png 845w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress6-150x132.png 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress6-300x265.png 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2018\/03\/How_to_Style_Contact_Form_7_Forms_in_WordPress6-768x678.png 768w\" sizes=\"(max-width: 845px) 100vw, 845px\" \/><\/a>\r\n\r\n<p>Refresh Contact page and enjoy the result of your work. My congratulations! Now, you know how to make the form attractive and eye-catching.<\/p>\r\n\r\n<p>In case you&#8217;re searching for premium templates to build a website from scratch, look through <a href=\"https:\/\/www.templatemonster.com\/wordpress-themes.php\">WordPress themes<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>One of the main benefits of making a website is that you can always be accessible to the visitors\/customers. Appealing Contact Form is a great opportunity to make that trick.<\/p>\n","protected":false},"author":87,"featured_media":84347,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[2017,728],"tags":[2257,955,640],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/84336"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/87"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=84336"}],"version-history":[{"count":5,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/84336\/revisions"}],"predecessor-version":[{"id":84367,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/84336\/revisions\/84367"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/84347"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=84336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=84336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=84336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}