Question
Is it possible to delay the Web Widget (Classic) from popping up?
Answer
It's possible to delay the Web Widget from showing up after a specific amount of time by customizing the widget code.
To achieve this, use the hide command, and then use the show command of the Core API.
In the sample below, the widget is delayed for 60 seconds. Note that the time is in milliseconds.
<script type="text/javascript">
zE('webWidget', 'hide');
setTimeout(function(){ zE('webWidget', 'show'); }, 60000);
//time in milliseconds - 60 seconds = 60000
</script>
If you use the Chat widget, see this article: Is it possible to delay the chat widget from popping up?
Disclaimer: This article is provided for instructional purposes only. Zendesk does not support or guarantee the code. Post any issues you have in the comments section or try searching for a solution online.
4 comments
Global One Technology
Hello Luiz,
Thank you for the article and the code. Where does this go?
We use BigCommerce and the script looks like this:
0
Dainne Kiara Lucena-Laxamana
Hi Global One Technology
Try adding the code under
so it needs to be before the actual widget code. Let me know if you have any follow-up questions!
0
James Constantino
Is there a way in achieving this in help center if we are using messaging?
0
Gabriel Manlapig
Hi James,
Yes, if you want to add time to load the Messaging Widget in your Guide or Help Center portal, you can use the API script below:
You can also refer to this API documentation for reference: Web Widget API
We hope this helps! Thank you!
0