Support » Plugin: Popup Maker - Popup Forms, Opt-ins & More » Redirect when popup is closed

  • Resolved dancia

    (@dancia)


    I am using popup Maker to open a popup when the page is loaded. When the user closes the popup or clicks outside the popup, I want the user to be redirected to another page. Is this possible?

    If so, please guide me on the same

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author danieliser

    (@danieliser)

    @dancia – Only if you write it via Javascript.

    jQuery('#pum-123').on('pumAfterClose', function () {
        window.location.href = "https://redirect.to/some-page/";
    });

    Hope that helps.

    • This reply was modified 1 year, 5 months ago by danieliser.

    Thanks a lot for the help

    It works perfectly. Thank you

    I’m curious where should this JS be placed and what does #pum-123 refer to?

    Same question as above, sounds like an interesting solution (I too need to redirect a visitor when they select to “Close” the popup), but WHERE do you put the javascript function?

    Nope, tried hacking this into my child theme in a dedicated .js script file, and amending the functions.php to call the scripts.

    Nothing.
    When I click any “Close” button (Circle with an “X”) on the popup corner, nothing.

    Then we have the questions: What does “#pum-123″ refer to?
    Is this just a placeholder for the popup class ID, eg: popmake-(myIDnumber)”?
    Do we substitute “popmake” with “pum” while retaining the original class ID number?
    Do we retain the check “#” mark or is this too used only for illustration purposes?
    Is there a hidden field where a unique “pum-(think-of-a-number)” is noted?

    I shall continue to explore and learn, nothing at this rate.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Redirect when popup is closed’ is closed to new replies.