Question
I need to hide or remove the option to chat with my agents from some pages of my website but keep it on other pages; how do I do that?
Answer
If you would like to remove your widget from a webpage altogether, simply remove the widget source code from that web page. For more information, see the article: Removing Web Widget (Classic) from your website or help center.
If you would like to keep your widget on all pages of your website but remove the option to live chat with your agents from only some of the pages, that is possible as well. If you have the Web Widget, you can use the suppress code as described in this article: Advanced customization of the Web Widget. If you have a chat-only account, follow the directions in the article: Showing and hiding the Chat window.
2 Comments
Is there a way to have the code on all pages but only show on certain pages so that the chat resumes if a user goes from a page with the chat widget to a page without the chat widget so we don't get cut off? Thanks!
Thanks for posting your question to the Community. You could use on chat:unreadMessages to listen for chat notifications coupled with window.location.pathname to track which page the user is on then toggle hide/show for the chat widget based on your needs. Here are the links to the how to hide/show the chat widget.
Another solution, you could just use z-index on the chat widget to move it from the front or back of the page. You'll still want to track chat notifications and location as well though to determine when to change the z-index value.
Hope this helps!
Erica
Please sign in to leave a comment.