Hi,
You can hide chat box on certain pages by setting the variable hideWidget in your code.
See our developer documentation here:
https://docs.smartsupp.com/customization/chat-code/#hide-chat-box-on-certain-pages
Thanks for the reply. I’ve tried adding the code, but the chat box is still showing on the page. Can you confirm that the below code is what I’m supposed to add?
<script type="text/javascript">
var _smartsupp = _smartsupp || {};
_smartsupp.key = 'MY-KEY-ENTERED-HERE';
_smartsupp.hideWidget = true; // use on specific pages
_smartsupp.hideMobileWidget = true; // hide chat box on mobile devices
window.smartsupp||(function(d) {
var s,c,o=smartsupp=function(){ o._.push(arguments)};o._=[];
s=d.getElementsByTagName('script')[0];c=d.createElement('script');
c.type='text/javascript';c.charset='utf-8';c.async=true;
c.src='https://www.smartsuppchat.com/loader.js?';s.parentNode.insertBefore(c,s);
})(document);
</script>
Do I need to insert this code on the specific page where I want the chat box to be hidden?
-
This reply was modified 6 years, 7 months ago by
davidcom.
Hi,
yes, you will need to add the following configuration only on the pages, where you need the chatbox to be hidden:
_smartsupp.hideWidget = true;