Title: Take link on close
Last modified: August 30, 2016

---

# Take link on close

 *  Resolved [italoc](https://wordpress.org/support/users/italoc/)
 * (@italoc)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/take-link-on-close/)
 * 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/](https://wordpress.org/plugins/popup-maker/)

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

 *  Plugin Author [Daniel Iser](https://wordpress.org/support/users/danieliser/)
 * (@danieliser)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/take-link-on-close/#post-6427872)
 * [@italoc](https://wordpress.org/support/users/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](https://wordpress.org/support/users/italoc/)
 * (@italoc)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/take-link-on-close/#post-6428020)
 * 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](https://wordpress.org/support/users/danieliser/)
 * (@danieliser)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/take-link-on-close/#post-6428030)
 * [@italoc](https://wordpress.org/support/users/italoc/) – sure you can email support
   @ wppopupmaker.com
 *  Thread Starter [italoc](https://wordpress.org/support/users/italoc/)
 * (@italoc)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/take-link-on-close/#post-6428045)
 * e-mailed
 *  Plugin Author [Daniel Iser](https://wordpress.org/support/users/danieliser/)
 * (@danieliser)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/take-link-on-close/#post-6428128)
 * [@italoc](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/popup-maker/assets/icon-256x256.gif?rev=3097653)
 * [Popup Maker - Boost Sales, Conversions, Optins, Subscribers with the Ultimate WP Popup Builder](https://wordpress.org/plugins/popup-maker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/popup-maker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/popup-maker/)
 * [Active Topics](https://wordpress.org/support/plugin/popup-maker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/popup-maker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/popup-maker/reviews/)

## Tags

 * [close](https://wordpress.org/support/topic-tag/close/)
 * [link](https://wordpress.org/support/topic-tag/link/)

 * 5 replies
 * 2 participants
 * Last reply from: [Daniel Iser](https://wordpress.org/support/users/danieliser/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/take-link-on-close/#post-6428128)
 * Status: resolved