Be careful after you close you will never see it again, (or you can clean your cache and historic for that site)
In the first page you will only have one time modal, and in the second page (see navigation) you will always have a modal at the opening or refresh of the page.
It works well alsoā¦ You do have to clear everything for it to come back up. Good and bad I guess. Some users hate them but in mailchimp they dont popup everytime either.
If someone need I share how to do it, I just donāt share right the way, because it probably not be the solution, for who ask, and so I donāt waste time making a long explanation.
In the page preferences you just add the following code:
<script>
// A $( document ).ready() block.
$( document ).ready(function() {
if (document.cookie.indexOf('visited=true') == -1){
// load the overlay
$('#modal-32886').modal({show:true});
var year = 1000*60*60*24*365;
var expires = new Date((new Date()).valueOf() + year);
document.cookie = "visited=true;expires=" + expires.toUTCString();
}
});
</script>
And where you see ā#modal-32886ā just change for the number of your modal that you create as I say above.
Donāt forget if you want that the button inside the modal instead of load the page, close/hide the modal, you go to interactions and in the Type you choose āNoneā , and in Costume Atributes you add a new atribute with this values:
Name: data-dismiss
Value: modal
ALWAYS START MODAL
In the page preferences you just add the following code:
And where you see ā#modal-32886ā just change for the number of your modal that you create as I say above.
Donāt forget if you want that the button inside the modal instead of load the page, close/hide the modal, you go to interactions and in the Type you choose āNoneā , and in Costume Atributes you add a new atribute with this values:
Name: data-dismiss
Value: modal
I block both situations, in both pages Auto and Manual, the no possibility to click outside the modal and no ESC button on keyboard, bet you can choose only the click or only the ESC or both as I choose.