Home Forums Space themes support forum Popul close issue

Popul close issue

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #673905

    John
    Participant

    Hello,
    We are using the venus theme and we have the popup from the theme active.
    When the button in the popup is clicked, it takes you to a certain page. The idea is that when you theoretically click the button and it takes you to another page, the popul should not appear again.
    How can we solve this?
    Thanks

    #674125

    Luke Nielsen
    Keymaster

    Hello,

    The promo popup is not designed for such functionality as you have. We suggest using the code below to fix that issue:

    (function($) {
    	var promo_popup_version = xts_settings.promo_popup_version;
    	$('.xts-promo-popup a').on('click', function(e) {
    			Cookies.set('xts_popup_' + promo_popup_version, 'shown', {
    				expires: parseInt(xts_settings.cookies_expires),
    				path   : '/',
    				secure : xts_settings.cookie_secure_param
    		});
    	});
    })(jQuery);

    Paste the code into the “Global JS” area in Theme Settings -> Custom JS.

    Kind Regards

    #674129

    John
    Participant

    Hello,
    It’s working.
    Thank you very much for your fast support!

Viewing 3 posts - 1 through 3 (of 3 total)