How to Create a WordPress Contact Form Without a Plugin

Learn how to create a WP contact form without a plugin the easy way. In this article you’ll get to know the best method!

Form on a mobile phone

Patrick Mitter /

18.02.2021


Not every WordPress user likes to keep a plethora of plugins in their backend. Sadly,to create a contact form, thereโ€™s just no way around installing yet another plugin,right? Or is there?

So glad you asked!

Of course, itโ€™s possible to create great WordPress contact forms without the help of a plugin. There are several ways to do so.

If you want to learn about these options, and how the much-dreaded GDPR comes into play, keep reading!

Creating WordPress Contact Forms Without a Plugin

Building a contact form in WordPress without using a plugin is possible. But unless youโ€™re a seasoned programmer, it might be a bit complicated.

It takes much more than just basic HTML and CSS knowledge: You have to create several PHP files for a contact form.

Hereโ€™s a little glimpse into the code of a PHP file:

PHP Code File

This is just the first (and easiest) of many steps (and weโ€™re not even talking about the need to know several programming languages).

When youโ€™ve successfully integrated the code, several challenges are waiting for you:

  • How do you connect the form with your email software?
  • How do you make your contact form look homogenous with the rest of your
    website?
  • How can you ensure high levels of data protection according to GDPR?
  • How can you prevent yourself from drowning in spam?

In sum, itโ€™s lots and lots of work. Have you ever asked yourself why there are so many contact form plugins available? Well, thatโ€™s why.

Whether youโ€™re a web designer or leading an agency, youโ€™ve heard this question before:

Can you integrate the contact form with our email marketing software?

Of course, this doesnโ€™t only apply to email marketing. Also, CRM (customer relationship management) tools need to be connected to contact forms.

This is useful from a business point of view: Regularly reaching out to your leads via email will not only increase trust but also boost sales in the long run.

Integrating these tools can be hard if youโ€™ve added your contact forms without any plugins. This step, like the ones before, takes thorough technical knowledge and backend work.

Guess what: Designers donโ€™t like working like that, and weโ€™re aware of it.

The best Contact Form 7 Alternative (And Other Contact Form Plugins)

Contact Form 7 is one of the most widely used plugins in WordPress history โ€“ and
for good reason.

Website Screenshot Contact Form

The plugin very early on made it possible for newbies to integrate a contact form on their website with just a few clicks. We donโ€™t want to do any bashing with this article (even if it may seem like it).

After all, itโ€™s an ideal solution for WordPress amateurs who want a fast, simple, and free method and donโ€™t need numerous features.

However, most plugins are unsuitable for professional web designers and agencies
with a large customer base.

To put it mildly, they do not meet the high standards that a good design agency has to face.

These are some more contact form plugins for WordPress:

  • Ninja Forms
  • Gravity Forms
  • WPForms
  • Jetpack Contact Form
  • Happy Forms
  • Formidable Forms

In their basic version (which is not always free), these offer limited options. You can then go ahead and use additional third-party plugins to compensate for these limitations, which would cause additional problems.

On the one hand, trying to integrate two plugins can be difficult โ€“ after all, not everything comes from a single source.

On the other hand, more code always means more loading time.

And we all know: The larger the code, the longer the loading time, and the faster youlose your site visitors.

Page Builder Contact Forms

Many page builders, like Elementor or Divi, offer contact forms for WordPress.
If you are already using one of these page builders to build your customersโ€™ websitesn- which we have already advised against in several articles โ€“ at least you donโ€™t need an external contact form plugin like Contact Form 7.

Unfortunately, though, this means youโ€™re just replacing one sub-optimal solution with another sub-optimal one. Why? Because you need the premium version of these page builders to be able to create a contact form at all.

In addition, many of these page builder contact forms miss important features.
One provider lacks the essential interface to your CRM or email marketing software.With another, you cannot create multi-step forms, which you would need for lead generation.

Most of these providers donโ€™t even cover the most basic functionalities, like being able to view all the form entries, or sending an automated email once the form is submitted. The main focus here is design.

On top of this, most of these page builder plugins are developed outside of
Germany, which can be fatal in terms of data security and the GDPR standard (weโ€™ll get into this a bit later).

Strictly speaking, page builders are not pure contact form plugins. Creating a
WordPress contact form without a plugin might just be the solution to the problem! But most page builders are just that: plugins. With a page builder, you will certainly reduce the total number of WordPress plugins you use. But youโ€™re still driving a Ferrari with the handbrake on.

If you ask us, neither of these options is perfect.

Fortunately, there is a very good alternative to the contact form plugins and contact form builders from Elementor, Divi, or other page builders.

GREYD.SUITE has a form builder that will outshine all those previously mentioned options. With GREYD.Forms, you can easily design all your contact forms to fit your every need โ€“ without using a plugin!

Youโ€™ll get all design options and advanced features (such as interfaces to all major CRMs and numerous newsletter tools). GREYD.Forms even automatically adapt
your forms to your overall website design.

And, as always with GREYD.SUITE: You donโ€™t need any programming knowledge.

WordPress Contact Forms and GDPR

GDPR is an important topic for website owners. After all, non-encrypted contact forms can result in fines of up to 50.000 Euros, which means youโ€™ll have to be even more careful about data security when you decide to build a contact form from scratch โ€“ without a plugin.

But what about plugins?

This is quite simple: If your plugin was developed outside of Germany, chances are it doesnโ€™t comply with all common security standards.

Fortunately, many providers take data security seriously, so you donโ€™t have to worry too much. But considering the potential fines, we recommend you make sure that the plugin comes from a trustworthy source.

We donโ€™t know of any German tool that has the GDPR-required double opt-in directly integrated. In most cases, youโ€™ll need another tool for this (e.g. Mailchimp), which then sends the data abroad.

GREYD, for example, is based in Germany (in beautiful Bavaria) and our software is developed exclusively here. This way, you wonโ€™t ever have to worry about any data being sent abroad.

Increase the security of your data transfer

By using an SSL certificate for your WordPress site, you can ensure the highest security standards for all your data transfers. SSL certificates are issued by certificate authorities like โ€œLetโ€™s Encryptโ€.

Most hosting providers offer an SSL certificate thatโ€™s either free or very inexpensive.

If this is not possible with your hosting provider, you will have to buy the certificate from a different place. Certificates for basic protection are available for a few Euros per year. If you run more complex websites with highly sensitive data (e.g. in online banking), you will need a more advanced certificate.

To even further increase your contact form security, you can use Googleโ€™s reCAPTCHA, a security service that protects your website from fraud and abuse. Theyโ€™re small puzzles that are very easy for humans to solve, but hard for โ€œbotsโ€ and other malicious software to figure out. Using reCAPTCHA will also tremendously reduce spam from bots.

Example reCAPTCHA

Although these reCAPTCHAs are mostly used for contact forms, they can help avoid spam in other scenarios as well. For example, reCAPTCHA will save you a lot of trouble when used for online shop reviews.

You can read more about this topic in our article โ€œHow to protect your forms against abuseโ€œ.

FYI: By default, GREYD.Forms include reCAPTCHA as well as other security features.

Bottom Line

Sure you can create a WordPress contact form without a plugin, but itโ€™s not going to be simple. Donโ€™t try this one at home if you donโ€™t have any coding experience.

Choosing a plugin on the other hand has its downsides. Youโ€™ll have to cut back on design options, or worse, data security.

Here are your options:

  • Ask several providers exactly what features their services will get you, which ones youโ€™ll get use out of, and how they work.
  • Choose an all-in-one solution: A WordPress theme that helps you create highly professional websites for your clients and lets you create awesome contact forms with the highest security standards.

Weโ€™re sure your clients appreciate that their data is in good hands โ€“ and that their contact form looks better than the forms on their competitionโ€™s websites.


By Patrick Mitter

Patrick loves good texts. Preferably about topics concerning online marketing and WordPress. Having built websites by using well-known page builders on his own and being very experienced in the SEO industry, he is very familiar with any kind of problems regarding those plugins. This is the reason why he adopted Greyd’s mission to simplify work for web designers as well as agencies.

Recent in Learn

A split collage showing partial screenshots of the websites for WP Umbrella and ManageWP, separated by a question mark. The image hints at a comparison between the two WordPress management tools.

Which WordPress management tool is best for you?

Read more

Close-up of hands typing on a laptop keyboard, representing the simplicity of performing a keyboard accessibility test.

Accessibility 101: How to perform a keyboard test

Read more

What To Do, When Your WordPress Site Got Hacked

Read more

A pen rests on top of a stylized table grid with the HTML tag prominently displayed in bold white text, symbolizing the structure of tabular data in web development.

Use Case Tutorial: When to use a table instead of a div

Read more

greyd sustainable websites blog

10 Tips for Sustainable Websites

Read more