Adding a Contact Form to Your WordPress Site

| WordPress
Adding a Contact Form to Your WordPress Site

Unlike Joomla or Drupal, WordPress doesn't have a default contact form. However, there are many good options to choose from. We recommend a plugin called "Contact Form 7".

Learn in this tutorial how to install this plugin and use it to embed a basic contact form in your WordPress blog posts or pages.

 Step #1. Install Contact Form 7 Plugin

  • Browse to Plugins >> Add New and search for Contact Form 7:

01 search plugin

  • You will see the "Contact Form 7" plugin listed. Click on the "Install" and then "Activate" buttons:

02 plugin listed

If for some reason the above instructions won't work for you, you may need to install the plugin manually:

  1. Go to the Contact Form 7 page on WordPress.org and download the file.
  2. Extract the files into a folder on your desktop. The folder will be called "contact-form-7"
  3. Login to your site's files via FTP and navigate to /wp-content/plugins/.
  4. Upload the "contact-form-7" folder to  /wp-content/plugins/.
  5. Go to "Plugins" and click "Activate" under "Contact Form 7":

03 activate plugin

Step #2. Display Your Contact Form

Once you have installed and activated the "Contact Form 7" plugin, you already have a sample contact form created for you. Let's display it in a WordPress post. You can apply the same technique to display this contact form on your WordPress page.

  • Go to "Contact" >> "Contact Forms":

04 contacts

  • Copy the shortcode displayed under the "Shortcode" column:

05 sample form shortcode

  • Open a post for editing and paste this shortcode anywhere you like:

 06 shortcode in post

If you visit the front of your site you should see a contact form looking like this:

07 contact form front end

Congratulations! You are now all set to allow your blog readers contact you through a basic contact form. In our next blog posts, we will show you how to create new forms, how to customise them and how to protect them from spam.

To learn more about how you can easily build great WordPress sites, join today the "OSTraining Video Club".