• Resolved italoc

    (@italoc)


    Is it possible to open a popup when a link is clicked, and then continue to the link when popup is closed?(variable link generated from template)

    Right now, I’m using, script:

    <script>
    jQuery('.btn-tickets').on('click', function (event) {
      jQuery('#popmake-477').popmake('open');
    });
    </script>

    but it opens the popup, and opens link at the same time.

    https://wordpress.org/plugins/popup-maker/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Daniel Iser

    (@danieliser)

    @italoc – “Passthrough” capability was added in v1.3 and we use it in several extensions such as Terms & Conditions and Age Verification.

    Instead of opening the popup with JS you just add the correct popmake-# class to your link. Then add JS to the close event like this.

    jQuery('#popmake-123')
        .on('popmakeAfterClose', function () {
            jQuery(this).addClass('preventOpen').
            jQuery.fn.popmake.last_open_trigger.click();
        });

    Essentially what that says is prevent the opening of the popup the next time and immediately click the last trigger or the link you originally clicked.

    Haven’t tested in this capacity but let me know how it works.

    Thread Starter italoc

    (@italoc)

    That does nothing, I put the script in footer.php. The popup just opens and closes just as it does by default.

    chrome dev tools returns
    “Uncaught TypeError: Cannot read property ‘fn’ of undefined”
    on jQuery.fn.popmake.last_open_trigger.click();

    I can e-mail link, but site is not public yet.

    Plugin Author Daniel Iser

    (@danieliser)

    @italoc – sure you can email support @ wppopupmaker.com

    Thread Starter italoc

    (@italoc)

    e-mailed

    Plugin Author Daniel Iser

    (@danieliser)

    @italoc – marking this resolved since we have moved it to email support. Also for others the final decision was to use the Terms & Conditions popups extension as it provided exactly the functionality that was needed.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Take link on close’ is closed to new replies.