How to Add a Contact Form in WordPress (Step by Step)

Last Updated: 23 Nov, 2026

To add a contact form in WordPress, install a form plugin such as Contact Form 7, edit the default form to ask for name, email and message, set the recipient address on the Mail tab, copy the shortcode into your Contact page, then send test messages to confirm you receive them.

Why your WordPress site needs a contact form

A contact form lets visitors write to you without exposing your email address to spam bots, and it gives you a structured message instead of a random email.

It also supports trust. Visible contact details, such as an address, phone number or professional email, prove you are a real business and support your E-E-A-T signals.

Google looks for signs that a website belongs to a real business, and contact details are one of them.

Which WordPress contact form plugin should you use?

A WordPress contact form plugin adds the form builder and handles sending the message to your inbox. Many exist, so choose by need, not by popularity alone.

If you need Pick
A free, simple form Contact Form 7
Drag-and-drop form design A visual form builder plugin
Payments or file uploads inside forms A full form builder with add-ons

For a student project or a small business site, a free plugin is plenty. Contact Form 7 describes itself as simple but flexible, it is free and open source, and it has millions of active installs on WordPress.org.

Contact Form 7 tutorial: build your first form

Follow these steps in the WordPress dashboard.

Step 1: Install and activate

Go to Plugins, Add New, search for Contact Form 7, then click Install Now and Activate. A new Contact menu appears in the sidebar.

Step 2: Edit the default form

Open Contact, Contact Forms. A sample form called Contact form 1 already exists. Click it and look at the Form tab. It already has fields for name, email, subject and message. Remove the subject if you do not need it, because fewer fields get more replies.

Step 3: Set where messages go

Open the Mail tab. In the To box, enter the address where you want messages delivered. Use a professional email such as contact@yoursite.com, which you can create in your hosting panel.

Step 4: Copy the shortcode

At the top of the form screen you will see a shortcode that starts with

Error: Contact form not found.

. Copy it exactly.

Step 5: Paste it into your page

Open your Contact page in the editor, add a Shortcode block, paste the code and update the page. Visit the page to see your form.

Customising the messages visitors see

On the Messages tab you can edit the success message, such as “Thanks, we will reply within one working day”. Write something honest. Promise only the reply time you can keep.

How to add a contact form in WordPress with other builders

The idea is the same in any builder. Add a form widget or block to the page, define fields, set the notification email and test. If you use Elementor, the Pro version includes a form widget, so check whether your plan covers it before you promise a client.

Make sure the email actually arrives

Forms often seem to work while the emails vanish. WordPress sends mail through the server by default, and many mail providers treat those messages as suspicious. To improve delivery:

  • Use a From address on your own domain, such as wordpress@yoursite.com.
  • Send to an address you control on a reliable provider.
  • Consider an SMTP plugin that sends through a proper mail account.
  • Check your spam folder during testing.

Keep spam out of your form

A public form attracts spam. Basic defences include a hidden honeypot field, a CAPTCHA integration and a rule against links in messages. Start with one method, check your inbox for a week and add another only if spam continues. Too many hurdles also block real people.

A form field plan for a consultation request

Illustrative fields for a freelancer’s page:

  • Name (required)
  • Email (required)
  • What do you need help with? (a short list: website, SEO, ads, not sure)
  • Message (optional)

Four fields is a good starting point. Add a phone number only if you will really phone people.

A six-test checklist before launch

  • Send a message with all fields filled.
  • Send one with the optional fields empty.
  • Send one from your phone.
  • Check the message lands in the inbox and not spam.
  • Check the success message appears.
  • Try to submit with a bad email address and confirm an error shows.

Only launch when all six behave.

Six tests to run on a WordPress contact form before launch
Six tests before launching a contact form

Frequently Asked Questions

Do I need to know code to add a contact form?

No. A plugin builds the form for you, and you place it with a shortcode or block. Code knowledge only helps when you want custom styling.

Why am I not receiving the form emails?

The usual causes are a wrong recipient address, mail landing in spam, or the server blocking default WordPress mail. Test with another address and consider an SMTP plugin.

Where do I put the contact form?

Put it on a dedicated Contact page, and consider a short version on service or landing pages where visitors are ready to ask.

Can I add a contact form without a plugin?

You can write one in code, but you must handle validation, spam and sending yourself. For most sites a trusted plugin is safer and quicker.

Should I also show my email address and phone number?

Yes. A form plus visible contact details builds trust, and some visitors prefer to call or email.

How do I know if my form is working over time?

Send yourself a test message once a month and set up conversion tracking so you can see submissions in your analytics tool.