How to setup Google reCaptcha Version 2.0?

How to setup Google reCaptcha Version 2.0?

Screenshot_4

To setup Google reCaptcha oepn url https://www.google.com/recaptcha/admin and fill form as shown in the screenshot below:

After registration open newly created reCaptcha site and read the guide provided by google as shown below:

Screenshot_3

Now paste  <script src='https://www.google.com/recaptcha/api.js'></script>  in <head> or anywhere before use of captcha.

And then paste  <div class="g-recaptcha" data-sitekey="6LcPQggTAAAAAAw-SQm8KTEW-N1CBuzBz_gW71UT"></div> to the place where you want to show captcha in form and obviously you will have to use tag with your own site key from google reCaptcha site.

HTML Form:  

Javascript Code:

functions.php

Add following code at the end of functions.php

 

Share this post