Hiding the chat widget via API Follow

Comments

1 comment

  • Avatar
    Oscar Jimenez

    Hello, sorry I am not developer, I want to only show the zendesk chat on some pages of our website, but I can't, customer service couldnt help me, they gave me this script but it didnt work.

     

    <script>
     
    var url = (window.location.href);
     
     
    {
    $zopim(function() {
    $zopim.livechat.hideAll();
    });
    }
     
    else {
    $zopim(function() {
    $zopim.livechat.window.show();
    $zopim.livechat.button.show();
    });
    }
    </script>
     
     
    I will thank you your help.
     
    Regards

Please sign in to leave a comment.

Powered by Zendesk