Last Updated on May 19, 2021 by Robin Mehta
Are you looking to add a contact form in WordPress blog? I will explain how to add contact form in WordPress website. If you are using blogger platform then this article is not for you.
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. 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.
As we want to learn how to add contact form in WordPress blog, it is very easy with the help of WordPress plugins.
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
Log in to your WordPress dashboard and go to Plugins -> Add New and search for contact form 7. Click on Install Now button.
Now click on Activate button to activate the plugin.
When contact form 7 plugin will be installed, a contact tab will be shown on the left side. 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.
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.
You can change email address on which you want to receive emails in Mail tab.
In Messages field you can edit messages you want to display after successful form submission or failure.
Save this form and copy contact form 7 short code.
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.
Your Contact Us page will look like this.
That’s Done. Your contact us page has been set up using contact form 7 plugin.
Contact Form 7 Plugin Not Working
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.”
Here you have to change the email address in From field “[email protected]” with same email address you have in To field.
If you are using hostgator hosting then, this problem occurs because hosting provider Hostgator 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.
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.
You can add WordPress and select your domain from drop-down list. Click on Submit button.
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.
If you have any doubt regarding this article on how to add contact form in wordpress, you can ask in comments.