Hi all. Thank you for reading this. I am looking add a text link in my about us page that says ‘Chat with our team’ and when a user clicks this the Shopify Inbox widget opens in the bottom right hand corner of the screen.
Came across this while trying to do this myself and came up with a somewhat simpler solution that works repeatedly and is easy to get working anywhere without special attributes on the link. Put the script below where ever custom JS goes in your theme.
Then all you have to do is have the chat link point to #chat, which you can do in any rich text field in the theme editor, for example:
Thanks very much for this workaround. Do I understand it correctly that this script prevents the chat icon from showing on the website and will only be visible when the link to #chat is clicked?
I inserted the script in the header section of theme.liquid. Nonetheless, the chat icon is still showing up all the pages. Did I put the script in the wrong place?