Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
arek

Promotional pop up frequency

Question

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

Share this post


Link to post

4 answers to this question

Recommended Posts

  • 0
Posted (edited)

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

Share this post


Link to post
  • 0

Dear humxagafeex, your solution worked like a charm 🙂 Thank you very, very much. Cheers.

Share this post


Link to post
  • 0
12 minutes ago, arek said:

Dear humxagafeex, your solution worked like a charm 🙂 Thank you very, very much. Cheers.

I am glad It Helped 🙂

Share this post


Link to post
  • 0
Posted (edited)

Hi thank you so much! It works, is there anyway to keep it on the mobile devices too??? @humxahafeex

 

Edited by EVPhoto

Share this post


Link to post

Create an account or sign in to comment

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


×
×
  • Create New...