• Resolved 4090

    (@4090-1)


    I have the following script in functions that only loads Contact Form 7 and Captcha on 3 contact forms.

    When I update to latest version of Contact Form 7 it no longer works. Assistance to update the script would be appreciated. I am not a PHP expert and copied the original script from a support page somewhere. Not sure where.

    // Deregister Contact Form 7 styles
    add_action( ‘wp_print_styles’, ‘aa_deregister_styles’, 100 );

    function aa_deregister_styles() {
    if( ! is_page( array( 69, 260, 211 ) ) ) {
    wp_dequeue_script(‘contact-form-7’);
    wp_dequeue_script(‘google-recaptcha’);
    }
    }

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Script not working after latest update’ is closed to new replies.