Jump to content

Promotional pop up frequency

Go to solution Solved by humxahafeex,

Recommended Posts

Site URL: https://www.pediatra-wizyty.pl/

Dear all, I am a pediatrician and I use a Squarespace site to manage online appointments.

Due to the Coronavirus, I need to inform my patients on health restrictions and recommend online consultations. I use the proportional pop up feature in Squarespace for this purpose and it is great, except that there is no option to have it  pop up on every visit. The frequency selection only allows a reset every 24 hrs, meaning that only new patients see this message and they only see it once. This is a problem because my visitors go back and forth from the website to appointment calendar and so on, therefore I need the pop up to appear on every visit. 

Is there anyone out there who could share the CSS code to manage the frequency? Perhaps not storing the cookie would trick the module, or a reset at every visit? I would really appreciate help to enable the message to pop up on every visit. Thanks. 

Cheers, 
Izabela

Link to comment
  • Solution

Hi @arek It's way too easy what you have to do is to put the following code to Settings > Advance > Code Injection>Header ,What this code will do it will pop up every time user visit the website.

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

 

Tested and it worked perfectly fine , Hope it works perfectly fine for you 🙂 

NOTE: TEST IT ON INCOGNITO OR  ON PRIVATE WINDOW. 

If it works for you don't forget to mark it as solved by clicking arrow on top left of this answer 🙂 

Edited by humxahafeex
Link to comment
  • 3 weeks later...
  • 4 months later...

hi @humxahafeex - i would like to put a disclaimer up on my website, where the user presses 'I agree' or 'I disagree' - is there any way for the popup to reappear if the user presses 'I disagree' and then goes back to the page, the popup to reappear again?

If the user presses "I agree" then I dont necessarily need the popup to appear again that day.

 

Thanks

Connie

Link to comment
On 8/11/2020 at 4:20 PM, Blehbeep said:

hi @humxahafeex - i would like to put a disclaimer up on my website, where the user presses 'I agree' or 'I disagree' - is there any way for the popup to reappear if the user presses 'I disagree' and then goes back to the page, the popup to reappear again?

If the user presses "I agree" then I dont necessarily need the popup to appear again that day.

 

Thanks

Connie

Hi. Have you found the solution yet?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 6 months later...
On 3/16/2021 at 10:36 PM, Thisisnecdet said:

Hi @humxahafeex 

Code works perfectly but I have another problem with this. When I put that code in, it disables 'Don't show again after newsletter sign-up' option, which is checked on my promotional pop up. Is there a way to fix that problem? Thanks.

Hi. Do you still need help on this?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 5 months later...
  • 1 month later...
On 8/11/2020 at 10:20 AM, Blehbeep said:

I would like to put a disclaimer up on my website, where the user presses 'I agree' or 'I disagree' - is there any way for the popup to reappear if the user presses 'I disagree' and then goes back to the page, the popup to reappear again?

The promotional popup isn't designed to do this, but we have a low-cost solution (one-off payment) that can display a disclaimer whenever a user lands on your site, or on a specific page if required.

It's called the Age Verification Popup. You'll find more information on the product page but if you'd like more information you can get in touch and we'll be happy to answer your questions.

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

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment
  • 4 weeks later...

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.