• Resolved clsconsulting

    (@clsconsulting)


    The targeting conditions are not being taken into account. The popup is showing on all pages even though it is set to only show on the home page. If I change the setting to show it on a particular page, it still shows on all pages as well.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Kim L

    (@kimmyx)

    Hi @clsconsulting,

    Sorry to hear you’re encountering issues.

    We noticed that you have a multi-language site.

    For these sites, you’d have to create a version of the popup for each language. This means that the targeting you set for your popup in English will only apply to the English version of your site.

    Please read more about that here: https://docs.wppopupmaker.com/article/344-display-a-popup-on-multiple-language-site

    Hope this helps! Let us know if you have more questions.

    Thread Starter clsconsulting

    (@clsconsulting)

    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.

    Plugin Support Kim L

    (@kimmyx)

    Hi @clsconsulting,

    Thanks for the response! Yes, please send us a screenshot of your settings.

    You can also send us a message at Support Request – Popup Maker so we can take a closer look.

    We’ll wait for your email!

    Thread Starter clsconsulting

    (@clsconsulting)

    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-popups

    Best regards

    Plugin Support Kim L

    (@kimmyx)

    Hi @clsconsulting,

    Thank you for the update and the suggested fix! We’ll inform our documentation team to amend the page.

    I’m now going to mark this as resolved.

    Feel free to create a new thread if you have other questions.

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

The topic ‘Targeting condition not working’ is closed to new replies.