Jump to content

Promotional Pop-up: Create "Enter Site" button to dismiss the pop-up

Recommended Posts

Site URL: https://whbc.squarespace.com

Hello.

I'm try to create a sort of age verification popup for a brewery website. I'm trying to make it work with the built-in promotional pop-up tool.

So far, I created a pop-up with two buttons: "Enter Site" and "Order Takeout"

The "Enter Site" button should close/dismiss the popup and show the visitor whatever page they've landed on.

The "Order Takeout" button would take underage uses directly to the food menu to order, skipping all of our content about alcohol.

For the "Enter Site" link I've tried both a "#" and leaving the link target blank. In both cases, clicking the button re-opens the current page in a new tab.

Does anyone know of a way to make that "Enter Site" button simply close that pop-up modal? And, I guess, set whatever cookies are needed to hide the pop-up per the marketing settings. I feel like there's some simple Javascript somewhere to do it but I'm not skilled enough to figure it out.

Screen Shot 2021-02-20 at 10.01.24 AM.png

Link to comment
  • Replies 3
  • Views 961
  • Created
  • Last Reply
19 minutes ago, caseyh said:

I'm try to create a sort of age verification popup for a brewery website. I'm trying to make it work with the built-in promotional pop-up tool.

There are a number of issues with using the promotional pop-up as an age-gate solution, aside from the obvious issue that you cannot use it for promotions! It's not just the X that dismisses the popup. Clicking anywhere outside the popup will also cause it to disappear, before they consent. It's also not possible to make it reappear the same day - it won't appear until the next day - which can be an issue in some territories.

We produce a low-cost solution that doesn't have these issues. If you'd like more information, see the product description or get in touch and we'll be happy to answer your questions.

age-verification-extension-tile.thumb.png.61e94bf2aed35c362f1a33ef48ba2f4c.png

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment

Thanks for reaching out, @paul2009. I'd come across your product but didn't recall it being flat-rate. That's attractive.

I was trying to avoid paying for this as I'm under the impression it's not even required, it just makes some visitors "feel" better.

Also, with a paid product, I'd like to be able to specify which pages it appears on, specifically with include and exclude capabilities. Does this extension offer that?

Link to comment

I've sent a DM. 🙂

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.