Popup System
Email-capture popup with time / scroll / exit-intent triggers. Replaces Privy.
Live preview
See it in action.
Fully interactive, drag, click, scroll inside the frame, toggle to mobile.
About this section
A complete email-capture popup with three trigger modes (time delay, scroll depth, exit intent), dismiss-with-memory, GDPR consent line, and a success state with optional discount code reveal. Posts to Shopify's customer endpoint with configurable tags, wires straight into your Klaviyo or Mailchimp flows.
Install in 90 seconds
- 01
Create /sections/modblo-popup-system.liquid.
- 02
Paste the section code and save.
- 03
Add `{% section 'modblo-popup-system' %}` to theme.liquid (just before </body>) so the popup is available on every page.
- 04
Configure the trigger, content, and customer tag in the theme editor.
- 05
(Optional) In Klaviyo/Mailchimp, set up a flow triggered by the customer tag you specified, that's where the discount-code email gets sent.
The code
This is the file you'll paste into your theme.
Unlock the section code
Popup System is a premium section. Get the full Liquid + scoped CSS paste-ready.
One-time purchase · Lifetime updates · You own the code
What you can customize
Every setting below shows up in the Shopify theme editor. Change them without touching code.
| Setting | Type | Default |
|---|---|---|
Trigger type trigger | Dropdown | time |
Time delay (s) delay_seconds | Slider | 6 |
Scroll depth (%) scroll_pct | Slider | 40 |
Re-show after dismiss (days) frequency_days | Slider | 7 |
Image image | Image | , |
Eyebrow eyebrow | Text | Members get more |
Heading heading | Text | 10% off your first order. |
Subheading subheading | Long text | , |
Submit label cta | Text | Get the code |
Customer tag tag | Text | popup-signup |
Success heading success_heading | Text | You're in. |
Success code (optional) success_code | Text | , |
Background bg | Color picker | #ffffff |
Foreground fg | Color picker | #0b0b0c |
Accent accent | Color picker | #6366f1 |
SEO and accessibility notes
- Posts to Shopify's native /contact endpoint, creates a real customer record, no third-party SDK.
- Real <form> with proper aria-modal dialog, screen-reader accessible.
- Escape key + overlay click both close the popup.
- Dismiss memory uses localStorage (no cookies / GDPR overhead).
- Exit-intent only fires on desktop pointer-leave, mobile gets a 30-second time fallback.
Related
