• Hi,

    can i somehow archive it, to only load/start the google recaptcha on certain pages. Right now, the request is happening on very page.

    I already have this code, but the google request is still happening.

    
    add_action( 'wp_print_styles', 'aa_deregister_styles', 100 );
    function aa_deregister_styles() {
        if ( ! is_page( array( 'katalog', 'kontakt' ) )  ) {
            wp_deregister_style( 'contact-form-7' );
    		wp_deregister_script( 'contact-form-7' );
        }
    }
    
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Captcha Script only on certain pages’ is closed to new replies.