Core Issue:
Users want to selectively hide the Shopify Inbox chat widget on specific pages where it may be distracting, while keeping it visible elsewhere.
Primary Solution (Page-Specific):
Add conditional code to theme.liquid before the closing </head> tag:
Replace ‘page-name’ with the target page’s handle. One user confirmed this works after adjusting the element ID.
Template-Wide Solution:
For hiding on all pages of a specific template (e.g., blog articles), insert the same CSS code at the top of the relevant template file (like article.liquid or main-article.liquid).
Alternative Approach:
Add an id attribute to the <body> tag in theme.liquid using Liquid conditionals, then target it in custom.css to hide the chat iframe.
Ongoing Challenges:
Multiple users report difficulty implementing the code correctly
Questions remain about hiding from all blog categories simultaneously versus individual pages
Some users request inverse functionality (showing widget on only one specific page)
Several participants are still seeking personalized assistance
Summarized with AI on October 31.
AI used: claude-sonnet-4-5-20250929.
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