• dleluez

    (@dleluez)


    Hi !

    I’m wondering, with geolocation, can the trigger only be activated once, and once the pop-up is closed it takes 2 days to reappear, for example?
    Like the “”Pages visited” tracking time” in the option I think.

    The idea is to have an interval between the display of pop-ups
    Is that possible with this plug-in?
    Thanks a lot!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author IfSo Dynamic Content

    (@ifso)

    Sure, here’s how to set it up:

    1. Add our ‘Add a cookie shortcode‘ to the pop-up’s content. For example: [ifso-add-cookie name=’show-once’ value=’two_days’ time=’172800′].
      *The ‘time’ attribute is the cookie expiration time in seconds. 172,800 is equivalent to two days.
    2. On your pop-up trigger, add another version. Place it as version A and set it as follows:
      • Condition: If: Cookie > Is > Cookie name ‘show-once’; cookie value is ‘two_days’.
      • Content: Leave the content blank.

    The outcome: When the pop-up is shown, a cookie will be added and remain valid for two days. Upon the user’s return to the site during this period, the cookie condition will be met, triggering version A to be displayed. As the content for version A is blank, the pop-up will not be shown.

    Thread Starter dleluez

    (@dleluez)

    Hi,

    Thank you for your help, but when I add ” [ifso-add-cookie name=’show-once’ value=’two_days’ time=’172800′].” in my page it break my site with a critical error.

    I understand that when I put this code it add a cookie with a certain name for the user. And when I create a condition using this cookie name the content appear.

    Should I add this code ([ifso-add-cookie name=’show-once’ value=’two_days’ time=’172800′].) like you send it or should I create it myself using your plug-in ?

    Plugin Author IfSo Dynamic Content

    (@ifso)

    My pleasure.

    You should paste the shortcode as I sent it.

    Did you paste it in a page template file or in a content field on your page?

    If you pasted the shortcode inside a PHP template, then you need to wrap it in a do_shortcode function:

    <?php echo do_shortcode('[ifso-add-cookie name="show-once" value="two_days" time="172800"]'); ?>

    If you still encounter problems, please send us a screenshot of how you embedded the shortcode.

    Thread Starter dleluez

    (@dleluez)

    So I past the short as you sent it in a code module in Divi

    https://ibb.co/YkTnNX6

    And after I past the code and save their is a critical error :

    https://ibb.co/DGbrLPT

    Plugin Author IfSo Dynamic Content

    (@ifso)

    Thanks for the screenshots.

    Please try adding the code with double quotes:
    [ifso-add-cookie name=”show-once” value=”two_days” time=”172800″]

    If it doesn’t work, please contact us at [email protected]. I will ask our developers to take a look.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Geolocalisation pop-up that do not activate each time the page is reload.’ is closed to new replies.