How to add reCAPTCHA in WordPress forms

Protect your website forms in a simple way. Today we will tell you how to add a reCAPTCHA in WordPress forms step by step .

How to Add reCAPTCHA in WordPress Forms – Step by Step

A reCAPTCHA is used to preserve your page from spam when you have form sheets. As you well know, there are programs that browse the internet using robots in search of forms that they complete to send misleading advertising with possible spam which damages a page (that’s why WordPress even allows you to configure the comment settings and avoid spam ).

Luckily in turn, Google created a tool to be able to identify them through the use of reCAPTCHA. These are images that you must read. Robots cannot read images or click a box, for example. Let’s see how to add a reCAPTCHA to our WordPress forms .

How to create a contact form in a few steps

In order to create a contact form you must install the plugin. To do this, enter the Plugin section that you have in the menu on the left of your WordPress.

From the search field that you have in the upper part to your right, write Contact Form . Choose one and click on Install. You must wait a few seconds for it to download. Then click on Activate.

In the event that you have not activated it at the moment, go to Plugin> Installed , look for the contact form and activate it. When you do, it should give you a shortcode .

Now, you must create a contact page from the Page> Create new entry section. Copy and paste the shortcode where you want your page form to appear and voila.

Remember that there are many more plugins that allow you to add many elements, so it does not hurt to look for what are the best plugins to layout pages ?

How to add a reCAPTCHA in WordPress forms step by step

To add a reCAPTCHA in WordPress forms you must activate the reCAPTCHA service from the Google website  . From there, click on the blue Get reCAPTCHA button that you have in the upper right corner.

Next, fill in the form fields with a name so that you can identify the reCAPTCHA you are going to create and the domain of the web page you want to add it to. Finally click on Register.

Then Google will show you another page where it explains how to integrate the reCAPTCHA created. The only thing you will need are the values ​​and keys of: Site key (site key) and Secret key (secret key).

Open another tab with the WordPress of your website. Enter the Contact> Integration section , from the menu on the left. Now you need to click on Configure Keys in reCAPTCHA.

On the next tab, enter the Site key and Secret key values that we saw earlier. You can copy and paste them to avoid mistakes. Click on Save to close and preserve the changes. Now you just have to add the reCAPTCHA field to your form. To do this, enter the Form from the left .

You must place it before the submit button. Add to your form the following code before and after the reCAPTCHA from the button you have at the top of the editions:

<div style = »clear: both;»> & nbsp; </div>

Remaining as follows:

<div style = »clear: both;»> & nbsp; </div>

[recaptcha]

<div style = »clear: both;»> & nbsp; </div>

Save the changes and verify that everything is working correctly.

To do this, you can enter your website from an incognito window. From there, position yourself on the form page and make sure that it is working as it should. If you press send without clicking on the reCAPTCHA and an error appears, it is because it is working correctly.

Now you have a form created in a practical way and free of spam. In addition to this, you should learn how to put the notice or cookie policies on your website , because that way it will look much more professional.

If you have any questions regarding how to add reCAPTCHA in WordPress Forms you can leave it in the comments so we can help you.

 

by Abdullah Sam
I’m a teacher, researcher and writer. I write about study subjects to improve the learning of college and university students. I write top Quality study notes Mostly, Tech, Games, Education, And Solutions/Tips and Tricks. I am a person who helps students to acquire knowledge, competence or virtue.

Leave a Comment