Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stracker-phil/aad938bc00795b670ec755b2d20b8922 to your computer and use it in GitHub Desktop.
Save stracker-phil/aad938bc00795b670ec755b2d20b8922 to your computer and use it in GitHub Desktop.
Generic trigger snippet for Popups for Divi / Divi Areas Pro to trigger the given Popup after a delay.
<script>
(function () {
// TODO: Adjust the following two lines:
var popup = 'contact'; // Your Popup ID.
var delay = 5; // Delay [in seconds].
setTimeout(function () {
DiviArea.show(popup);
}, delay * 1000);
})();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment