Categories

Featured templates

JS Animated. How to activate captcha (reCaptcha)

Lana Greene September 22, 2014
Rating: 5.0/5. From 1 vote.
Please wait...

Hello, this tutorial shows how to activate Captcha in JS Animated templates.

JS Animated. How to activate captcha (reCaptcha)

Captcha is advised to be added in the templates starting from 50000+ only.

In some cases you may need to activate Captcha on your website, for example, to keep out spammers. CAPTCHA effectively tests if you are a human or a machine.

In order to activate Captcha, you should do the following:

  1. Follow this link to register your domain(site). You will get 2 keys:

    JS_Animated.How_to_activate_captcha_(reCaptcha)_1
  2. In “bat/MailHandler.php” file you should input the Private recaptcha key:

    $private_recaptcha_key=''; //localhost
    JS_Animated.How_to_activate_captcha_(reCaptcha)_2
  3. In “js/TMForm.js” file you should input the Public recaptcha key:

    recaptchaPublicKey:''
    JS_Animated.How_to_activate_captcha_(reCaptcha)_3
  4. Then add the following line of code in contact form code in the HTML file before Submit button:

     <label class="recaptcha"><span class="empty-message">*This field is required.</span></label>
    JS_Animated.How_to_activate_captcha_(reCaptcha)_4
  5. Enable the script of captcha in HTML file with the form in <head> section, before ТМForm.js enabling:

    <script src="//www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script> 
    JS_Animated.How_to_activate_captcha_(reCaptcha)_5

Now the Captcha is activated.

JS_Animated.How_to_activate_captcha_(reCaptcha)_6

Feel free to check the detailed video tutorial below:

JS Animated. How to activate captcha (reCaptcha)
This entry was posted in JS Animated tutorials and tagged activate, add, captcha, javascript. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket