Modal with yes or no options

I’m trying to create a modal that has a YES or NO option. Basically a popup modal that asks if you are 21 or older as you have to be 21 to enter the site.


Can someone guide me through this? I have some basics set up but that’s it.

Very similar to a cookie consent or any other pop-up, where upon clicking a value is stored within the browser so that the user won’t see the same modal again. The other button ()under age could just be linked to a page telling them they can’t access the site.

Here’s a video on making a cookie consent pop-up, but there might be other threads with similar solutions here on the forum.

Thanks. I’ll take a look at the cookies consent. Pixelgeek is awesome! Can you send me your link for the one you did as I am not seeing it.