Skip to content
Advertisement

How to open a popup after the contact form 7 succesfully submitted

I am using WordPress and Contact form 7. I need to show a popup using magnificPopup js which will come after the successfully submission of the contact form. Have added an hook for the wpcf7_mail_sent, but how can I call popup to show using javascript.

Example :

In functions.php

JavaScript

in Custom.js file

JavaScript

Advertisement

Answer

Try this

create a bootstrap modal popup then add this function in function.php

JavaScript

OR

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement