Jump to content

Promotional pop-up

Recommended Posts

Hi,

I would like to show a promotional pop-up each time a user access the home page.

How can I code this frequency?

Tried the code injection below but this results in showing the promotional pop-up on each page.

<script>
  window.localStorage.setItem('test', '0');
  window.localStorage.setItem('squarespace-popup-overlay', '0');
</script>
Link to comment
1 minute ago, lievenb said:

Hi,

I would like to show a promotional pop-up each time a user access the home page.

How can I code this frequency?

Tried the code injection below but this results in showing the promotional pop-up on each page.

<script>
  window.localStorage.setItem('test', '0');
  window.localStorage.setItem('squarespace-popup-overlay', '0');
</script>

You can place the code on your home page code injection

image.png.ef5d869597cb4845cfd8f2374f0e7041.png

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • 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.