Mr Parker theme newsletter popup timing

Solved
Shopify Partner
4 0 1

Hi,

 

I am using the Mr Parker theme and would like to change the timing of the newsletter popup to 2 minutes after site load. Does anyone know where the code for this timer is stored?

Thanks

0 Likes

Success.

Explorer
44 9 12

Hi @pbbeach 

 

There is code snippet in the source:

 

  // Fancybox Join our mailing list popup
  $(document).ready(function(){

    
      var check_cookie = $.cookie('mailing_list_delay_popup');
      if(check_cookie == null){
        $.cookie('mailing_list_delay_popup', 'expires_seven_days', { expires: 7 });
    
      //fire your fancybox here
      setTimeout(function(){
        $.fancybox({
          href: "#mailing-popup",
          wrapCSS: "mailing-popup"
        });
      }, 5000);
    
    }
    
  });

You can change the setTimeout value from 5000 to 120000 instead to make it 2min.

 

You will need to find where it's located in the theme.

1 Like
Shopify Partner
4 0 1

Thanks! Found it very helpful

0 Likes