We are looking to have a chat link on an external page (outside our Help Center). On the page, I have added the widget code. Additionally, I have added a link and code to hide the pop-up per this community article: Adding a Chat Link
However, the code I have implemented to hide the pop-up is not working. And, I feel it has to do with the link not being in the Help Center, because the article suggests putting the script into the General Settings>Custom Design>JS.
Any help is greatly appreciated!
Here is the relevant portion of my code:
<!-- Start of datawatchsupport Zendesk Widget script -->
<script>
*Widget Code*
</script>
<!--hide script from pop up-->
<script>
$zopim(function() {
$zopim.livechat.hideAll();
});
</script>
<!-- End of datawatchsupport Zendesk Widget script -->
<!--chat link-->
<a href="javascript:$zopim.livechat.window.show();">
<img src="chat.png" alt="Chat Button" />
</a>