Shopify inbox chat window opens automatically when you open the store website

Shopify inbox chat window opens automatically when you open the store website

TheStitchGlitch
Excursionist
17 1 2

I am using shopify inbox for my online store and I have noticed that some times when I open my website, the chat window is open already and it is very random

 

How do I force it to stay closed until someone clicks on the button?

 

Website URL - www.thestitchglitch.com

 

Replies 4 (4)

HiddenAllure93
Visitor
1 0 0

Hi, I was trying to do the same thing. Peeped your website and noticed you had gotten it done. Was wondering how.

aulanagold
Visitor
3 0 0

HI, I'm trying to figure this out too. I was hoping you can share a solution if you found one. Thanks.

ayoume88
Tourist
11 0 3

I came here for a solution but I just noticed that the chat bubble doesn't automatically open when you're visiting it as a client and not an admin.

As a client, one you close it, it stays closed I believe.

carter_383
Shopify Partner
3 0 1

In your websites code 

theme.liquid

add the following

 

<script>
  window.onload = function() {
    setTimeout(function() {
      if (window.ShopifyChat && window.ShopifyChat.hideChat) {
        ShopifyChat.hideChat();
      }
    }, 1000);
  };
</script>

 

Charles

38-3D