Status: I'm using Divi on a Wordpress page combined with Popups for Divi-Plugin. I successfully set a popup as overlay on main page that shows some info by using this code:
<script>
(function() {
DiviArea.addAction('ready', function() {
// Option 1: Show the Popup instantly.
var popupId = 'mypopupID'; // TODO: ← Enter the ID of your Popup here!
DiviArea.show(popupId);
});
})();
</script>
What I want: By visiting page I want the overlay only to appear once on inital page visit, not everytime a user get's back to main page when browsing the site.
A solution how this can be achieved would be appreciated.
Thank you.