Stop contact form 7 from conflicting with your other jquery based code on wordpress


To stop the contact form 7 from conflicting with other jquery based code and plugins you can use this code in the functions.php file.

// De-register jQuery from Contact Form 7

add_action( ‘wp_print_scripts’, ‘my_deregister_javascript’, 100 );
function my_deregister_javascript() {
wp_deregister_script( ‘contact-form-7’ );
}

found the solution here

Advertisements

8 thoughts on “Stop contact form 7 from conflicting with your other jquery based code on wordpress

  1. Grateful Guy

    Almost 5 years to the day and this is still relevant and fixed my issue… in a way that’s a shame, but whatever… saved me some time. I thank you much! ā¤

    Reply

Let me know what you think .. :)

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s