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 CreativeStorm, cat_not_kitty, Kidwest and 6 others 6 2 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 Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) 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 Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) 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. Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? Link to comment
lievenb Posted November 12, 2021 Share Posted November 12, 2021 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> Beyondspace 1 Link to comment
Beyondspace Posted November 12, 2021 Share Posted November 12, 2021 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 cat_not_kitty 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! 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
Kidwest Posted March 3, 2023 Share Posted March 3, 2023 it's work for me also thank you! Link to comment
CreativeStorm Posted March 21, 2023 Share Posted March 21, 2023 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
GAMF Posted July 21, 2023 Share Posted July 21, 2023 Dear All, I am currently trying to add a pop-up to some pages of my website. The pop-up is used to show rules so I'd like people to read it through. I already deactiveated the close button using css : .sqs-popup-overlay-close {display: none !important} I also injected some code lines to make it appear on every new visit : <script> window.localStorage.setItem('test', '0'); window.localStorage.setItem('squarespace-popup-overlay', '0'); </script> Now what I would like to do is use the button as if it was a close button. I don't want it to reload the page, since that makes my pop-up appear again and users get stuck in a loop because of the frequency code. If anybody can help me with this it would be really appreciated. Thank you! Link to comment
tuanphan Posted July 28, 2023 Share Posted July 28, 2023 On 7/22/2023 at 2:30 AM, GAMF said: Dear All, I am currently trying to add a pop-up to some pages of my website. The pop-up is used to show rules so I'd like people to read it through. I already deactiveated the close button using css : .sqs-popup-overlay-close {display: none !important} I also injected some code lines to make it appear on every new visit : <script> window.localStorage.setItem('test', '0'); window.localStorage.setItem('squarespace-popup-overlay', '0'); </script> Now what I would like to do is use the button as if it was a close button. I don't want it to reload the page, since that makes my pop-up appear again and users get stuck in a loop because of the frequency code. If anybody can help me with this it would be really appreciated. Thank you! What is your site url? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
JasonArend Posted March 25 Share Posted March 25 Can this be used to show the popup once an hour? Link to comment
humxahafeex Posted March 28 Share Posted March 28 On 3/25/2024 at 11:21 PM, JasonArend said: Can this be used to show the popup once an hour? Hi yes you can for that you need to customize it. 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