To prevent spam on forms use Google’s reCAPTCHA:

  1. Go to https://www.google.com/recaptcha/admin/create and fill in the URL where you want to add it.
  2. The WP administrator/WP manager with administrator permission should get (Image 1):

Image 1

3. The WP administrator/WP manager with administrator permission should:

  • add a site address to the “Label” text field
  • add a site Name to the “Domains”
  • choose a reCAPTCHA v3 radio button
  • enter email address
  • accept the reCAPTCHA Terms of Service in the check-bok
  • clicking on the “Send Message” button

4. The WP administrator/WP manager with administrator permission should see (Image 2):

Image 2

5. The WP administrator/WP manager with administrator permission should go to the WP-admin page, click on the “Contact” menu, choose by the click the “Integration” sub-menu. After that, the WP administrator/WP manager with administrator permission should click the “Setup Integration” button of the reCAPTCHA (Image 3)

Image 3

6. The WP administrator/WP manager with administrator permission should fill out the fields with keys from step 4 and click on the “Save Changes” button.

7. The WP administrator/WP manager with administrator permission should click on the “Appearance” menu button, “Theme Editor” button to get into the “Theme Editor” page (Image 4)

Image 4

8. The WP administrator/WP manager with administrator permission should click on the “Theme Header” on the right bar and write the code between <header> and </header> (Image 5):

<script srs=”https://www.google.com/recaptcha/api.js></script>

Image 5

Clicking on the “Update File” button to save the result.

9. The list of forms should be opened by the click on the “Contact” menu button at the left-bar on the admin page (Image 6)

Image 6

10. The editing page should be opened by the click WP administrator/WP manager with administrator permission on the “Edit” button under the form name (Image 7)

Image 7

11. The WP administrator/WP manager with administrator permission should get into the “Form edition” page with the next information (Image 8):

Image 8

12. Put the next code at the end of the <form> before the “Submit” button to appear the widget:

<div class=”g-recaptcha” data-sitekey=” keys from step 4”></div> 

 and click on the “Save” button

Leave a Reply

Your email address will not be published. Required fields are marked *