Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • clarityonline

    (@reelboldmedia)

    @mrrohitbhardwaj Thank you kindly for that direction, it was very helpful! I was able to put together a snippet to make this work. For anyone else who has this issue, here’s what we’re using:

    <script>
    (function () {
        DiviArea.addAction('ready', function () {
            var popupId = 'offer'; // TODO: ← Enter the ID of your Popup here!
            var popupClosedCookie = DiviArea.Utils.getCookie('popup_closed_' + popupId);
    
            // Only show the popup if it hasn't been closed in this session
            if (!popupClosedCookie) {
                window.setTimeout(function () {
                    DiviArea.show(popupId);
    
                    // When the popup is closed, set a cookie to prevent it from showing again
                    DiviArea.addAction('hide_area', function (area) {
                        if (area.attr('id') === popupId) {
                            // Set a cookie that expires in 30 minutes (or however long you want the session to last)
                            DiviArea.Utils.setCookie('popup_closed_' + popupId, 'yes', 30);
                        }
                    });
                }, 6000);
            }
        });
    })();
    </script>
    clarityonline

    (@reelboldmedia)

    Hello @mrrohitbhardwaj,

    I’m the developer who helped @buddha35 set this up on the site.

    Yes, we did add the popup to the global theme builder. It’s in the header so it appears on every page. We’re using a code snippet in the header which triggers the popup after 6 seconds.

    We want the popup to appear on every page, and we want it triggered after 6 seconds. However we want a cookie or localstorage to recognize when a visitor closes it, so it’s not shown to them multiple times on one session. Is there a custom code snippet to function that can accomplish this?

    @philsbury Incredible, it works perfectly in 3.0.4. Greatly appreciate that rapid turnaround time. AgeGate is the best age verification plugin I’ve found ??

    +1 on this issue, only happening for the button verification method, only on Safari versions older than 15.4

    Hey there, I absolutely love your plugin! Even displaying hundreds of items, the block is very fast.

    I’m encountering a very similar issue to this post. When using the block AND grouping letters (ex. A-C), the list of items is being displayed reverse-alphabetically. I’m using this to list products filtered by a taxonomy.

    Thank you for fixing this! Just searched for this problem and found you updated it 2 days ago!

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