1. Shopify Dashboard > Go to Themes > Actions > Edit HTML / CSS
At Search Files in Left Bar please find out: bc.script.js.liquid (assent folder) > bc.script.js.liquid (click to edit)
Find code line from 175 -> 195
,mailchipPopup : function(){ var expire = jQuery("#mailchimp-popup").data('expires'); if (jQuery.cookie('mycookie')) { //it hasn't been one days yet } else { jQuery.fancybox( jQuery('#mailchimp-popup'), { 'autoDimensions': false ,'width': 770 ,'height': 400 ,'autoSize' : false ,'transitionIn': 'none' ,'transitionOut': 'none' } ); } jQuery.cookie('mycookie', 'true', { expires: expire }); }
AND REPLACE BY (IN WHICH 5000)
,mailchipPopup : function(){
var expire = jQuery("#mailchimp-popup").data('expires');
if (jQuery.cookie('mycookie')) {
//it hasn't been one days yet
}
else {
setTimeout(function(){
jQuery.fancybox(
jQuery('#mailchimp-popup'),
{
'autoDimensions': false
,'width': 770
,'height': 400
,'autoSize' : false
,'transitionIn': 'none'
,'transitionOut': 'none'
}
);
}, 5000);
}
jQuery.cookie('mycookie', 'true', { expires: expire });
}
SAVE AND DOUBLE CHECK IT WORK ON YOUR WEBSITE
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article