• Resolved taksu

    (@taksu)


    Hi,

    I need to remove the captcha from specific pages, is it possible and how?

    E.g. I have:

    // remove captha from page 33
    if ( is_single(33) ) {
    // remove captcha code here…
    }

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author MihChe

    (@mihche)

    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.

    Plugin Author MihChe

    (@mihche)

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to remove captcha from a specific page?’ is closed to new replies.