Hey guys, does anyone know how i can make the shopify inbox app only show up on my specific blog page and blog posts? At the moment its on every page but I have blogs behind a paywall and only want active members to have access to the chat feature. Thanks
Topic summary
Goal: limit Shopify Inbox chat visibility to blog pages/posts so only paying members (blogs behind a paywall) can access it.
Progress: A helper requested the store URL to review setup. Another member provided a quick code-based workaround.
Solution: Insert a small JavaScript snippet in theme.liquid just before the closing tag to hide the chat on all non-blog pages:
- Logic: if ShopifyAnalytics.meta.page.pageType is not ‘blog’ or ‘article’, inject a #shopify-chat{display:none} into the head.
- Effect: Shopify Inbox chat appears only on blog index and article pages.
- A short screen recording link was shared to show where to place the code.
Outcome: The original poster confirmed the snippet worked as intended. Status: resolved; no further actions requested.
Hey @amoss-merch
Welcome to Shopify Community! Can you share your Store URL so I can have a look on it? Also, if you have password enabled then please share the password as well. Your cooperation would be greatly appreciated.
Best Regards,
Moeed
Hi, its https://gtk20n-ww.myshopify.com/
Thanks
Hi,
If you want a quick workaround for this, you can add this code to the theme.liquid file of your theme, right before the closing of body tag: https://go.screenpal.com/watch/cZXOD5nVdu4
Here is the snippet:
Hope that this helps.
Regards,
Avada team
thank you, that worked perfectly