Hi!
Here is a tutorial on how to use an Overlay and make it to be triggered on page load only once.
P.S. I’ve created a small JS function that you can use on your project
Video (audio included)
JS
//Show Overlay Function
//Delay is in milliseconds
function openOverlayOnlyOnce(OverlayID, TriggerID, Delay){
const storage = localStorage;
const storageOverlayItem = "overlay"+OverlayID;
if ($(OverlayID).length){
if (!storage.getItem(storageOverlayItem)) {
storage.setItem(storageOverlayItem, true);
//Trigger the Overlay
setTimeout(function(){
$(TriggerID+" a").trigger("click");
}, Delay);
}
}
}
//When document is loaded
$( document ).ready(function() {
//Open the Overlay only once
openOverlayOnlyOnce("#ed-65140450","#ed-65140447", 1300);
});
Hope this helps.