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:

  1. 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.
  2. The promo-close attribute is for the button that closes the popup and sets the timer for when it will reappear.
  3. The promo-reset attribute is for a button that manually resets the dismissal, useful for development and testing purposes.
  4. 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>
  5. It's done 🎉