Bug: wpcf7 JQuery Not Defined Error
-
Since upgrading the site to WordPress 5.9
When using the solution below to only load JS and CSS on pages with contact forms:
https://contactform7.com/loading-javascript-and-stylesheet-only-when-it-is-necessary/I am seeing a console error on all contact form pages
wpcf7 JQuery Not Defined Error. Showing in the Console:
/wp-content/plugins/contact-form-7/includes/js/index.js?ver=5.5.4Please can you advise?
I Have Honeypot for CF7 and Flamingo installed. Disabling these plugins makes no difference
Code added to contact template file:
if ( function_exists( 'wpcf7_enqueue_scripts' ) ) { wpcf7_enqueue_scripts(); } if ( function_exists( 'wpcf7_enqueue_styles' ) ) { wpcf7_enqueue_styles(); }Code added to functions.php in child theme:
// Disable Contact Form 7 Unless Called add_filter( 'wpcf7_load_js', '__return_false' ); add_filter( 'wpcf7_load_css', '__return_false' );- This topic was modified 4 years, 2 months ago by . Reason: More detail added for debug
- This topic was modified 4 years, 2 months ago by .
- This topic was modified 4 years, 2 months ago by .
The page I need help with: [log in to see the link]
The topic ‘Bug: wpcf7 JQuery Not Defined Error’ is closed to new replies.