The Blog Market

  • Home
  • About
  • Resources Directory
  • Advertise With The Blog Market
  • Contact Us

How to Create a Customized Contact Form in WordPress

July 11, 2016 by jennifer Leave a Comment

One web design element I absolutely love customizing is the contact form. I know, so exciting right?! I’m not sure why this is a thing for me, but it is. WordPress users, today I have a short tutorial for you on how to customize your contact form if you’re using the plugin Contact Form 7. I highly recommend using this plugin because it has a simple markup and won’t slow down your site, it can be customized in so many ways, and it has 1 million+ users with a rating of 4.5 stars. NBD.

Let’s go through the process of customizing a basic contact form for your blog or website. The end result will look a lot like the contact form we have on this site, but you can always decide to make it fancier and/or more inline with your brand.

Customize Your WordPress Contact Form | The Blog Market

First, install and activate the Contact Form 7 plugin if you haven’t already.

In your WordPress Dashboard, go to Contact > Add New. You’ll want to name the contact form and press “save”, and you will see a shortcode that you can place into your contact page. When you preview your page, your default contact form will look similar to this:

contact-2

Before we add code, we need to make sure all of the contact fields are correct. Go back to your “Edit Contact Form” page and insert whatever fields you need. Contact Form 7 gives you a bunch of options to choose from so just click whatever field you need, and it’ll appear.

Something I also like to do is put the labels inside of the fields rather than above them. To do that, remove all the text between the <p> tags except for the shortcode. Then add placeholder “field name” to the very end of each shortcode. Obviously replace “field name” with the actual field name. 😉

Afterward your HTML will look something like this:

<p>[text* your-name placeholder “your name”]</p>
<p>[email* your-email placeholder “your email”]</p>
<p>[text your-subject placeholder “subject”]</p>
<p>[textarea your-message “message”] </p>
<p>[submit “Send”]</p>

Save your changes and refresh your contact page to see the updated form:

contact-3

Now we’re at the fun part! Customizing with CSS. Copy and paste the codes below into your CSS stylesheet and tweak them as necessary (view our CSS cheat sheet as a helpful reference).

Edits the text within each field:

.wpcf7 input, .wpc7f textarea {
padding: 16px;
width: 100%;
font-family: futura-pt;
text-transform: uppercase;
letter-spacing: 2px;
font-weight: 400;
font-size: 13px;
background: #fff9f7;
border: 1px solid #ffb2a0;
}

Controls spacing between each field:

.wpcf7 p {
margin-bottom: 12px;
}

Customizes “send” button (regular and on hover):

.wpcf7-submit {
background: #ffb2a0;
width: 100%;
}
.wpcf7-submit:hover {
opacity: 0.7;
}

Here is the final result:

contact-4

And there you go! Another great thing about Contact Form 7 is that it’s already mobile responsive so that’s one less thing to worry about.

Hope you found this tutorial helpful. Send any questions my way!

Leave a Comment

Leave a Reply Cancel reply

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

Recent Posts

  • Easy Ways to Add Greenery to Your Workspace
  • How to use Pinterest board sections to get organized + stay inspired
  • Friday Favorites 05 | Terrazzo Trend
  • Best Creative Planners for 2020
  • 10 Journal Prompts for Creative Motivation

Recent Comments

    © 2018 The Blog Market · · BACK TO THE TOP