Is it possible to delay the chat widget from popping up?

Return to top
Have more questions? Submit a request


  • Vadim Eremeev

    Another way is to wrap initialisation code into delay function like below


    function showzopim() {
    <!--Start of Zopim Live Chat Script-->
    <!--End of Zopim Live Chat Script-->

  • Ricardo
    Zendesk Community Team

    Thanks for the addition, Vadim!

  • idanrs

    With all due respect I don't understand where exactly do I have to add this script.

    The script I implemented in the head of my site is:

    <!-- Start of idan Zendesk Widget script -->
    <script id="ze-snippet" src=""> </script>
    <!-- End of idan Zendesk Widget script -->

    Do I have to add the script you described above to the page head too?

    Or is it going somewhere else?

    If it's going somewhere else, could you be very explicit where exactly?


  • Brett Bowser
    Zendesk Community Team

    Hi idanrs,

    If you'd like this widget to display on all pages in your website, you'll paste it into the document head of your theme. If you'd only like the widget to display on certain pages, then you'll paste the code snippet on that particular page on your website.

    If you're still having troubles locating where this should be pasted, can you clarify if you're trying to include the widget in your Zendesk Help Center or external website?


  • sum


    I just implemented the same, and it worked well. Thanks for the code. I have faced the issue that the widget is showing when offline. I want to hide the widget when offline. Since we forcefully showing the widget $ so that the $zopim.livechat.button.setHideWhenOffline is not working any more.

    Also is there any method to check the status?



  • Brenda Cardinez
    Zendesk Customer Advocate

    Hi Sumith,
    To hide the widget when offline, you will just need to make sure that the offline form is deactivated from your Chat Widget settings, Forms tab. Please take note that the chat widget status depends on your Agent Status in the Chat dashboard.
    Hope this helps! Thanks!

  • Giulio Orsi

    Hi, I tried this solution to delay the loading of the chat on the site, it works, the only thing that then shows it open and not closed. There is a way that to show closed chat after loading otherwise it becomes invasive.

  • Shai Sy Dimayuga
    Zendesk Customer Advocate

    Hi Guilio,

    Hope you are well.

    If you would like to show only "chat button" after delaying the chat widget from showing up, you can then replace the "$" to "$" instead.

    <script type="text/javascript">
    var bool = true;

    $zopim( function() {
    bool = $zopim.livechat.isChatting();

    if(bool==false) {
    setTimeout(showzopim,60000); //time in milliseconds - 60 seconds = 60000

    function showzopim() {

Please sign in to leave a comment.

Powered by Zendesk