@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.