How can I hide and show the chatbox?
The Crisp chatbox can be hidden and shown back via your website JavaScript code. This allows you to precisely control where you want your chatbox to be visible and where you don't want to.
You can use the following JavaScript code to hide the Crisp chatbox:
You can use the following JavaScript code to show back the Crisp chatbox:
Those operations are specific to the page you call them from, and are not restored upon navigation. If you need to hide the chatbox for some time and the user navigates to another page, you will have to hide it back again.
Want to know more about the $crisp interface? Read: How to use $crisp Javascript SDK?
You can use the following JavaScript code to hide the Crisp chatbox:
$crisp.push(['do', 'chat:hide']);
You can use the following JavaScript code to show back the Crisp chatbox:
$crisp.push(['do', 'chat:show']);
Those operations are specific to the page you call them from, and are not restored upon navigation. If you need to hide the chatbox for some time and the user navigates to another page, you will have to hide it back again.
Want to know more about the $crisp interface? Read: How to use $crisp Javascript SDK?
Updated on: 13/03/2024
Thank you!