Introduction
These instructions explain how to add a contact form to WordPress using the Contact Form 7 plugin. This will allow you to easily add a customised contact form and avoid getting spam.
Requirements
- WordPress 4.9 or higher.
- WordPress Admin account with permission to install Plugins.
Skill Level
Intermediate knowledge of WordPress.
More Info
Contact Form 7 plugin page: https://en-gb.wordpress.org/plugins/contact-form-7/
Instructions
Time needed: 10 minutes.
- Log into WordPress Admin.
This is usually accessed via yourdomain.com/wp-admin.
- Click Plugins.
- Click Add New.
- Search for the Contact Form 7 plugin.
In the Search plugins… field, enter Contact Form 7.
- Install the Contact Form 7 plugin.
In the Contact Form 7 listing, click Install Now.
- Activate the Contact Form 7 plugin.
After the plugin has installed, click Activate in the Contact Form 7 listing.
- Click Settings.
Click Settings in the Contact Form 7 listing.
- Edit Contact form 1.
Click Edit in the Contact form 1 listing.
- Edit the Form details.
Edit the content of the form as required. The pre-populated content is suitable for a general purpose form. For more info, see the Contact Form 7 Admin screen guide: https://contactform7.com/admin-screen/
Click Save. - Click Mail.
- Edit the Mail details.
Edit the fields as required. The pre-populated content is suitable for a general purpose form, but you will probably want to edit the To field. For more info, see the Contact Form 7 Admin screen guide: https://contactform7.com/admin-screen/
Click Save. - Copy the Shortcode.
At the top of the page, copy to code snippet starting [contact-form-7…
- Go to the Post or Page where you want to add the contact form.
These instructions assume that a Page called Contact Us is used.
- Click the + button.
- Add a Shortcode Block.
In the Search for a block field enter Shortcode.
In the Widgets section, click Shortcode. - Add the Shortcode for the contact form.
In the Shortcode field, enter the Shortcode for the contact form that you copied.
Save the changes by clicking Save Draft, Publish (or Update if you’ve already published the page).