arek Posted March 15, 2020 Share Posted March 15, 2020 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 humxahafeex Posted March 16, 2020 Solution Share Posted March 16, 2020 (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 March 16, 2020 by humxahafeex miraworks, Kidwest, Izzy2222 and 5 others 6 1 1 Link to comment
arek Posted March 17, 2020 Author Share Posted March 17, 2020 Dear humxagafeex, your solution worked like a charm 🙂 Thank you very, very much. Cheers. Link to comment
humxahafeex Posted March 17, 2020 Share Posted March 17, 2020 12 minutes ago, arek said: Dear humxagafeex, your solution worked like a charm 🙂 Thank you very, very much. Cheers. I am glad It Helped 🙂 Link to comment
EVPhoto Posted April 7, 2020 Share Posted April 7, 2020 (edited) Hi thank you so much! It works, is there anyway to keep it on the mobile devices too??? @humxahafeex Edited April 7, 2020 by EVPhoto Link to comment
Blehbeep Posted August 11, 2020 Share Posted August 11, 2020 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
tuanphan Posted August 17, 2020 Share Posted August 17, 2020 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
Thisisnecdet Posted March 16, 2021 Share Posted March 16, 2021 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. Link to comment
tuanphan Posted March 24, 2021 Share Posted March 24, 2021 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
Ayisha Posted September 2, 2021 Share Posted September 2, 2021 Hi @humxahafeex does this solution work on squarepsace 7.1? I injected the code and tested on incognito, however, once the agree button is selected, the pop-up re-appears. Link to comment
paul2009 Posted October 30, 2021 Share Posted October 30, 2021 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. About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity 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. Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.Improve your online store with our extensions. Link to comment
Jzapata90 Posted November 24, 2021 Share Posted November 24, 2021 This suggestion worked for me, but the pop up keeps reappearing, is there a way when visitors click on my "I agree" button the pop up simply closes. Link to comment
CreativeStorm Posted March 21 Share Posted March 21 On 3/17/2020 at 6:17 AM, humxahafeex said: 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 🙂 Hi @humxahafeex - I realise this is an old thread but I am trying this code on this website: https://www.mphousing.com.au/ They need the pop-up to appear on any first page when a visitor lands on their website, which is working great however, it appears on every page once a user is on there which requires them to keep closing it while navigating around the website. Is there a way to perhaps have it display again after 'x' amount of time, an hour for example? Does anyone have a solution for this? Thanks heaps! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment