Forked from divimode-philipp/trigger-after-delay-2.html
Created
September 30, 2022 08:36
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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