Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Giuseppe Barbera
Giuseppe Barbera
1,933 Points

WP - Magnific pop up & cf7

Hello guys,

i have a problem with magnific popup and cf7, i have a pop up with form situated in another template, when it submitted there an ajax call for some thing, after that i don't know why the page reload on the template where i create pop up...

Any suggest?

i try with : open: function() { console.log('Popup is opened'); jQuery.get("/wp-content/plugins/contact-form-7/includes/js/jquery.form.min.js"); jQuery.get("wp-content/plugins/contact-form-7/includes/js/scripts.js"); $('form').wpcf7InitForm(); // Initialize form for AJAX

But nothing, in console wpcf7InitForm(); is not a function