How to Add Contact Form in WordPress – Contact Form 7 Plugin Tutorial

how to add contact form in wordpress

Are you looking to add a contact form in WordPress blog? I will explain how to add contact form in WordPress website.

But before that let me explain why you need a contact form.

  • A contact form is a primary method to contact a blog owner.
  • It shows the authenticity of the blog.
  • It stops spam emails. By putting email on contact page allow spam bots to find your email address and send spam emails.
  • Contact forms are more user-friendly. They provide a convenient method to contact you rather than using their email account for sending an email.
  • With a contact form, you can ask for a particular information from the user and direct user to your landing page.

how to add contact form in wordpress

As we want to learn how to add contact form in WordPress blog, it is very easy with the help of WordPress plugins.

Want to Start a Free Blog: Guide on How to Start a Free Blog

But finding the right plugin may be a tedious task for you. In this tutorial, we will add contact form using one of the Most popular WordPress contact form plugin i.e. contact form 7.

How to Add Contact Form in WordPress using Contact Form 7 WordPress Plugin

Contact form 7 is one of the most popular WordPress contact form plugin. It has 1 million plus active installation and very good star rating.

This plugin is developed by Takayuki Miyoshi. This plugin is updated regularly and compatible with the latest WordPress installation.

How to Add Contact Form 7 in WordPress

Step 1 

Log in to your WordPress dashboard and go to Plugins -> Add New and search for contact form 7. Click on Install Now button.

contact form 7 wordpress plugin

Now click on Activate button to activate the plugin.

contact form 7 wordpress tutorial

Step 2

When contact form 7 plugin will be installed a contact tab will be shown. Click on the Contact tab. If there is default contact form 1 you can edit this form by scrolling over contact form 1. You can use this form on contact us page.

contact form 7 demo

Step 3

Click on Edit and a form will appear. This default form will add all necessary fields like Name, Email, Subject and Message boxes with the Send button. You can edit this form and add new custom fields as per your requirement.

how to edit contact form 7

You can change email address on which you want to receive emails in Mail tab.

contact form 7 mail settings

In Messages field you can edit messages you want to display after successful form submission or failure.

Contact form 7 custom messages

Save this form and copy contact form 7 shortcode.

contact form 7 shortcode

Step 4

Add a Contact us page from Pages tab. Go to Pages -> Add New. Paste the shortcode on this page. Click on Publish to make this page live.

how to use contact form 7

Your Contact Us page will look like this.

add contact page to wordpress

That’s Done. Your contact us page has been set up using contact form 7 plugin.

Sometimes contact form 7 plugin may not work and if WordPress contact form 7 not sending email you should try these solutions. 

In this case, you may get an error message like this “There was an error trying to send your message. Please try again later.”

Solution 1

Here you have to change the email address in From Field “[your-name] <[email protected]>” with “[your-name] <[email protected]>” (Same address filled in ‘To’ field).

wordpress contact form 7 not working

In my case, this problem occurs because my hosting provider says

“This is a security feature implemented to avoid Email Spoofing.”


“As per server policy, it is required for you to register the email address if you are using it in your website to send emails through mail scripts or it is used by plugins.”

You may also see a message in cpanel

wordpress contact form not sending email hostgator hosting

Solution 2

To solve this issue you have to add or register the email address on Cpanel – Email – Registered Email ID’s.

So if you don’t want to change “[email protected]” email address you have to add this email address to Registered Email ID’s.

registered mail ids option

You can add WordPress and select your domain from drop-down list. Click on Submit button.

for sending mails via scripts

With this update contact form 7 will send email perfectly to your email address. This solution is better for all type of conversations between WordPress software and your email address.

Also Read

If you have any doubt regarding this article on how to add contact form in wordpress, you can ask in comments.