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

#397329

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