This script allows you to show a promotional popup that disappears after the user closes it and only reappears after a set number of days. It also includes a reset option to make the popup reappear immediately by clearing the dismissal state.
How to Use the Script:
- Add the attribute promo="30" to the popup to make it reappear 30 days after being closed. You can adjust the value as needed. Also, apply the class is-hidden to hide the popup by default.
- The promo-close attribute is for the button that closes the popup and sets the timer for when it will reappear.
- The promo-reset attribute is for a button that manually resets the dismissal, useful for development and testing purposes.
- Copy the script and paste it just before the closing </body> tag. <script src="https://cdn.jsdelivr.net/gh/jeminids/webflow-codes@dismissible-promo-popup_v1.0/dismissible-promo-popup.min.js"></script>
- It's done 🎉
Promo Here
Don’t Miss Out on Our Exclusive Offer! For a limited time only, enjoy 20% off your next purchase when you use the code SAVE20 at checkout. This is your chance to grab your favorite products at a fantastic discount! Act fast—this offer expires in 7 days, and once you close this popup, you won’t see it again for a month. Take advantage of this incredible deal and elevate your shopping experience today!