• I need recaptcha solution for contact form 7 and wordpress and woocommerce.

    Is this plugin support Contact 7 Forms also or do I need Contact Form 7 api for it.

    It will load twice the necessary scripts for it.

    How to solve it.

Viewing 1 replies (of 1 total)
  • Manesh Timilsina

    (@maneshtimilsina)

    Hi @ksaltik

    This plugin does not work for contact forms like Contact Form 7, Gravity Form, etc. You can use inbuilt reCAPTCHA of such plugins.

    To avoid loading scripts and styles twice, you can remove scripts/styles of this plugin from contact pages.

    You can add the following code to functions.php of the theme you are using to remove the styles/scripts of this plugin from the selected page

    function agr_dequeue_script() {
    
    	if( is_page( array( 'contact', 'contact-us', 'contact-me' ) ) ){
    		
    		//remove scripts
    		wp_dequeue_script( 'advanced-google-recaptcha-custom' );
    		wp_dequeue_script( 'advanced-google-recaptcha-api' );
    
    		//remove style
    		wp_dequeue_style( 'advanced-google-recaptcha-style' );
    	}
    
    }
    
    add_action( 'wp_enqueue_scripts', 'agr_dequeue_script', 100 );
Viewing 1 replies (of 1 total)
  • The topic ‘Contact 7 Form Support or Its own api’ is closed to new replies.