• Resolved davidcom

    (@davidcom)


    Hello. I would like to have the chat window appear on all of the pages of my site EXCEPT one page. Can you please let me know how to hide/remove the chat window from a specific page in WordPress?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Smartsupp

    (@smartsupp)

    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

    Thread Starter davidcom

    (@davidcom)

    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 5 years, 1 month ago by davidcom.
    Plugin Author Smartsupp

    (@smartsupp)

    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;

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hide/Remove chat from a specific page’ is closed to new replies.