Home › Forums › WoodMart support forum › Promo popup keeps popping up on every page load › Reply To: Promo popup keeps popping up on every page load
August 15, 2022 at 12:54 pm
#397329
Elise Noromit
Member
Hello,
Please add this code to the Theme Settings > Custom JS > On document ready:
(function($) {
$('.wd-promo-popup').on('click', function(e) {
Cookies.set('woodmart_popup_' + woodmart_settings.promo_version, 'shown', {
expires: parseInt(woodmart_settings.promo_version_cookie_expires),
path : '/',
secure : woodmart_settings.cookie_secure_param
});
});
})(jQuery);
Best Regards