• Resolved newshop

    (@newshop)


    Hello,
    I just fell in love with this plugin but I am afraid that there is one thing that I can not achieve: I would like to use the contact form within a popup (using Popup Maker Plugin) and if I click the Send Button, it should only show the confirmation message within the popup. But it closes the popup and refreshes the page instead. Is there a way to fix this?
    Many thanks in advance!

Viewing 1 replies (of 1 total)
  • Hi newshop,

    I’m glad you reached out! I actually have the code you need to keep Popup Maker open ??

    You’ll need to add the following code to the confirmation message of your form (in the form builder under Settings > Confirmation). It can go below the regular text you have in the message.

    <script type="text/javascript">
    jQuery(function($){
    	$('#popmake-120').popmake('open');
    });
    </script>
    

    Just copy that PHP into your functions.php file (in your site files, the path should be /wp-content/themes/YOUR-THEME/functions.php). Also, be sure to change that ID (currently 120) to match the ID of your Popup Maker popup.

    To avoid possible frustration down the road, I also want to mention that the safest way to ensure this code isn’t lost when your theme is updated is to use a child theme. Here’s a tutorial from WPBeginner that shares how to do this.

    I hope this helps! ??

Viewing 1 replies (of 1 total)
  • The topic ‘Contact form in popup with Ajax’ is closed to new replies.