Hi,
Let’s do it like this: Example of excluding in home page
add_action('wp_print_scripts', function (){
if(is_home()){
wp_dequeue_script( 'google-invisible-recaptcha' );
}
});
Based on this you can exclude it from any page/post
Does it work for you?
~Mihai
Thread Starter
taksu
(@taksu)
Hi,
That worked thanks.
But, found these bugs.
– Can’t click/hover does not work with the badge (.grecaptcha-badge) when using IE Edge (works fine with Chrome)
– Can’t validate comment form fields with jquery.validate (jqueryvalidation.org). When I click comment submit the validate gets overriden and ugly default WP page loads. Validation works when captcha is disabled.
Thanks.
Hi @taksu,
Glad to hear that worked for you. Regarding other issues you described, these are incompatibilities with your theme and not bugs. I don’t think Google didn’t test the reCaptcha badge in IE Edge. You are using custom comments form with js client side validation. Again, this is something related to you theme. Unfortunately, I cannot help with this.
~Mihai