Create a Contact Form in WordPress

如何轻松地在WordPress中创建联系表单

Looking for a quick and easy way to create a contact form in WordPress?

WordPress has a lot of plugins and themes that you can use. The biggest challenge in creating a contact form in WordPress is actually compatibility. How do you create a contact form that doesn’t break because of plugin conflicts or your theme’s default settings?

What’s even the point of using WordPress if you have to site and code contact forms in HTML and CSS? On top of that, you’d have to manually code a way to connect your form to an email service provider.

And then, you’d have to resolve any email delivery issues.

Don’t worry. There’s a much simpler way that works with any theme and there’s zero coding involved.

In this article, we’re going to give you a WordPress contact form plugin that resolves all these issues right out of the box. We’ll even show you how to create your very first contact form using that plugin. And it will take you less than 10 minutes to create a form.

让我们开始吧。

Why You Should Create a Contact Form on Your WordPress Site

Before we get started with building your contact form, let’s talk about why you would want a contact form on your WordPress site in the first place. Isn’t it much easier to have a button that opens up Outlook and allows your web visitors to email you directly?

Short answer: NO!

But this is a perfectly reasonable question to ask. You’re probably thinking that it takes way too long to code a contact form and then put it up manually across all your money-making pages.

And you’re right. It does take a long time to create a contact form manually using code. But we’re not going to use any code in this article.

Besides, a contact form is way better than displaying your email in public. A well-designed contact form:

  • Protects your inbox from spam: Spam bots scrape “mailto” tags on your site to automatically collect email addresses to spam. Having a contact form with Captcha protection can prevent that.
  • Gathers data in a consistent, readable pattern: When you leave it up to your prospects to email you, they will often leave out crucial information that you may need. So, there’s no consistency in the data you gather. But you can design your contact form to gather all the important data you need and then email the response to you in a structured, readable way.
  • Automates onboarding processes: You can actually create contact forms that redirect to a different page when someone submits their form. This is a great way to inform your leads and prospects about the next steps in their onboarding journey.

Here’s a quick look at the form that we’re going to create in this article:

Contact form preview

We’re going to do it all using one of the best WordPress form plugins in the world.

让我们开始吧。

How to Add Contact Form in WordPress

The first thing you need to do is choose a WordPress contact form plugin.

Of course, a quick Google search will show you that there are way too many contact form plugins to choose from. So, we went ahead and found the best plugin for you.

We recommend using WPForms to create contact forms on your WordPress site.

WPForms

WPForms is the #1 WordPress form builder plugin with over 3 million users. You get a drag and drop form builder, which means that you can create WordPress forms with incredible features in a matter of minutes.

You can also use WPForms Lite, which is the free version of WPForms. So, if you’re looking for a free form builder to get started with, you can use the Lite version. Later, when you need more powerful features for your forms, you can upgrade to the paid plans.

Step 1: Install WPForms on Your Site

Let’s start by installing WPForms on your site. Head over to the site and click on Get Started to sign up for the plugin. Then, head over to your WPForms dashboard and go to Downloads to get your plugin:

WPForms下载

接下来,在您的网站上安装并激活该插件。并在同一选项卡中复制您的许可证密钥。

NOTE: If you need more step-by-step instructions, you should check out this article on how to install WordPress plugins.

最后,转到您的WordPress仪表板,然后前往WPForms » 设置,然后粘贴您的许可证密钥:

激活WPForms许可证

When you’re done, click Connect. And you’re done!

Step 2: Create a Contact Form in WordPress

现在 WPForms 已安装并激活,是时候创建您的第一个表单了。前往 WPForms » 新建表单

使用WPForms添加新表单

这将打开 WPForms 的拖放式表单构建器。

要创建新表单,请为其命名并选择您的表单模板:

Form title and template

And that’s it! if you want to add or edit the fields in your contact form, you can do so from the sidebar. Darg and drop form fields to add new ones and click on the existing fields to edit them:

Add form fields from the sidebar

完成后,单击保存

Step 3: Configure Notifications and Confirmations

接下来,您需要设置通知和确认。

通知是有人填写表单时您收到的电子邮件。确认是为了提醒用户他们已成功填写表单。通常,这是一个“谢谢”消息,但您也可以将用户重定向到专用页面。

前往 设置 » 确认 以配置确认设置:

表单确认

然后在同一菜单中,转到 通知 以配置您的通知消息:

表单通知

默认情况下,通知会发送到 WordPress 管理员电子邮件。因此,如果您希望将电子邮件发送到其他地方,例如您的销售主管的电子邮件 ID,您可以在此处进行设置。

Step 4: Add Your WordPress Contact Form

You’re done configuring your WordPress contact form at this point. So, let’s go ahead and add it to a page. There are 3 basic methods to add a WPForms contact form to your WordPress site. We’re going to take a look at each.

Method#1: Add the Form Using the Block Editor

Head over to whichever page you want to add your contact form and add a new WPForms block:

使用WPForms块添加联系表单

Then, select your newly created form using the dropdown menu:

WPForm block select form

And you should see your contact form get inserted automatically into your page.

Just hit Save and Publish to see your WordPress form in action.

Method #2: Add Your Contact Form Using WPForms Shortcodes

WPForms also generates a shortcode for each WordPress contact form. You can copy the contact form shortcode by visiting WPForms » All Forms:

WPForms shortcodes

And then, paste the shortcode in any post or page you want. It’s that simple.

If you’re new to shortcodes, you should check out this article on how to add a shortcode on WordPress sites.

Method #3: Add Your Contact Form in the Sidebars

The sidebar is one of the most underused features in most WordPress sites. We highly recommend inserting a contact form in your site’s sidebars. Head over to Appearance » Widgets in your WordPress dashboard and add the WPForms widget to your sidebar:

Add Contact Form to Sidebar

您就完成了!

How to Track Your WordPress Form Conversions

Once you’re done creating your form and adding it to different pages, you should also set up a good way to track and measure conversions. We recommend using MonsterInsights to track your form analytics.

MonsterInsights

MonsterInsights is the #1 Google Analytics plugin and we love the software.

The plugin is super easy to set up and you can track your form conversion analytics using MonsterInsights reports:

MonsterInsights Form Reports

And it integrates seamlessly with WPForms.

总结

好了,各位,本次分享就到这里!

By now, you’ve created your first WordPress contact form and set up conversion analytics for it.

Now, all that’s left is generating traffic to your site so that your contact forms can get to work. A simple way to do that is to start using push notifications. Sending push notifications is a great way to generate repeat traffic for your site. If that’s something you’re interested in, you should check out these articles as well:

We recommend using PushEngage to send your push notifications. PushEngage is the #1 push notification software in the world. So, if you haven’t already, get started with PushEngage today.

添加评论

我们很高兴您选择留下评论。请记住,所有评论都将根据我们的隐私政策进行审核,并且所有链接都将是 nofollow。请勿在姓名字段中使用关键字。让我们进行一次个人化且有意义的对话。

在访客离开您的网站后与他们互动并挽留他们

通过难以忽略的推送通知,增加每次网站访问的价值。

  • 永久免费套餐
  • 轻松设置
  • 五星支持