clsconsulting
Forum Replies Created
-
Hi Kim,
thank you for your time.
I’ve found the reason for my issue. It was the script I wrote (copied) to schedule the popups:function schedule_my_popup($is_loadable,$popup_id) { if($popup_id == 2023) { date_default_timezone_set('Atlantic/Canary'); $now = strtotime( 'now' ); $start = strtotime( 'January 9, 2023 12:00PM' ); $end = strtotime( 'February 26, 2024 7:00PM' ); $is_loadable = ( ( $now >= $start ) && ( $now <= $end ) ) ? 1 : 0; } return $is_loadable; } add_filter('pum_popup_is_loadable','schedule_my_popup',2,1000);I have changed the second line, which was wrong, to:
if($popup_id == 2023 && $is_loadable) {I hope this helps to others that may have the same problem.
In addition, you should update your own documentation page:
https://docs.wppopupmaker.com/article/192-scheduled-popupsBest regards
Hi Kim,
thank you very much for your answer. I’m already familiar with how to create a popup for each language, that’s not the problem. In fact, I have the same problem on another website (https://parquemaritimosantacruz.es/) that only has one language.
On both websites, the pop-up window is shown on ALL pages and not only on the home page despite having configured the target to be displayed only on the home page.If you wish I can send you a capture of my settings.
Let me know if you need more information.