Plugin Support
Kim L
(@kimmyx)
Hi @tajmohamed30,
You can add a cookie on Popup Open to prevent it from reappearing after hitting back on iPhone. Can you try that?
For example: https://share.getcloudapp.com/ApugXowX
More information about cookies here: https://docs.wppopupmaker.com/article/358-popup-settings-box-cookies-option-settings
Hope that helps!
Plugin Support
Kim L
(@kimmyx)
Hi there,
I’m going to mark this as resolved as we haven’t heard from you in a while.
Feel free to create a new thread if you have other questions.
Thanks!
thanks for your reply @kimmyx
I want to appear pop up for each and every product when clicked them(as I said I’m using it as preloader on android webview due to touch response issue)
as you mentioned cookie option I have tried but it disables further popups so I think this option won’t satisfy the requirement
also fyi – you can say what about normal preloaders, the difference is normal preloaders overlay window appears on next page, but I want to achieve overlay window before going to next page (for slower touch response)
Plugin Support
Kim L
(@kimmyx)
Hi @tajmohamed30,
You can set the cookie as a session cookie until the user closes the browser. This will ensure the popup will reappear once triggered for the first time again.
You can also set your cookie timer to a shorter period (1 minute, 1 hour, etc).
Or, you can add a Close button somewhere inside the popup so the user can manually close it.
Would any of the above work?
Let us know if you have more questions.
Im triggering blank overlay popup at same time going to product page (once clicked any product from homepage)
Issue – when pressed back button, popup remains at home page
Solution – On going back page triggered the refresh, I have achieved with below snippet
function custom_js_snippet() {
?>
<script>
jQuery(document).ready(function($) {
// Check if the current page is the home page
function isHomePage() {
return window.location.pathname === '/';
}
// Refresh the page when the back button is pressed to return to the home page
window.addEventListener('pageshow', function(event) {
if (event.persisted && isHomePage()) {
location.reload();
}
});
});
</script>
<?php
}
add_action('wp_footer', 'custom_js_snippet');
you can mark as resolved
thanks
Plugin Support
Kim L
(@kimmyx)
Hi @tajmohamed30,
Thank you so much for sharing your solution! 🙏
We’ll mark this thread as resolved now.