Hello, the improvements and integrations on the Shopify inbox app have been amazing.
One key feature that would be crucial, is the availability to hide the ‘chat with us’ widget , on certain pages. Some pages really need the chat button, others, it can be very distracting
I hope i can find some help on how to solve this. Thank you
Hi @SidouLF and @heskew , how would I apply this code to all blogs on the website? I have several different blog categories, and I would like to turn off chat for all of them. Do I need to list them all separately or can I disable the chat button for all blogs?
Here is example code to try to disable the “oregano oil and organic skincare” category:
My solution isn’t necessarily URL specific but rather template specific!
For example, if you would like to hide the Shopify chat widget on article pages! You’ll need to go to Themes>Edit code and then search for the “article.liquid” template in sections folder.
At the top of the section, insert the code below:
The above code should work for any template you’d like to hide the chat widget on.
If you are looking to hide the widget on a specific page, you’ll need to have slightly more developer knowledge. You’ll need to use handles!
You should be able to remove it from all blogs by just using the {% if blog %} but I am not 100% certain on that. It seems to me that the chat is loaded after everything else. So I made a workaround you add an id= inline to your body tag in your theme.liquid file
...lots of code here
Then in your custom.css file you can add the css to remove it