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
https://www.thinkjarvis.co.uk/contact/
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 3 years, 1 month ago by . Reason: More detail added for debug
- This topic was modified 3 years, 1 month ago by .
- This topic was modified 3 years, 1 month ago by .
The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Bug: wpcf7 JQuery Not Defined Error’ is closed to new replies.