sansan
sansan

Reputation: 833

When i ignore the google captcha it does'nt show the error message

This is my website. http://travelsweetnsour.com/2016/12/24/srinagar-kashmir-india/ In comment form i implemented google captcha using WP-reCAPTCHA-bp plugin. When i ignore the google captcha it does'nt show the error message.

Please help, Thanks in advance...

Upvotes: 0

Views: 541

Answers (1)

Giacomo Paita
Giacomo Paita

Reputation: 1419

When you have some problem, always (always!) have a look in the developer tools of your browser.

In your case, there are some errors in the capthca plugin.

Then, i found that you load captcha JS file twice: here:

<script type="text/javascript"src="https://www.google.com/recaptcha/api.js?hl=en"></script> 

and here:

<script src='https://www.google.com/recaptcha/api.js'></script>

Get rid of one of them.

In your code, pass the correct ID (id="submit-alt") for the submit button:

<script type="text/javascript">
   var sub = document.getElementById('submit-alt');
   document.getElementById('recaptcha-submit-btn-area').appendChild (sub);
   document.getElementById('submit-alt').tabIndex = 6;
   if ( typeof _recaptcha_wordpress_savedcomment != 'undefined') {
       document.getElementById('comment').value = _recaptcha_wordpress_savedcomment;
   }
</script>

In fact, your submit button has this ID:

<input name="submit" type="submit" id="submit-alt" tabindex="6" value="Submit Comment">

Upvotes: 2

Related Questions