Theme 💎 Built for Sidekick ✍️ Sidekick drafts it — you apply it
shopify sidekick theme popup compliance

Age Verification Popup

Add a fullscreen age-gate modal that blocks store access until visitors confirm they meet the minimum age requirement.

Sidekick writes it — you put it live

Sidekick produces the content or code for this, but doesn't apply it to your store itself. You'll paste or publish the result yourself — the prompt tells Sidekick to explain exactly where it goes.

📋 Prompt
Run in Sidekick
Generate the Liquid, CSS, and JavaScript for an age verification popup section that I can paste into my theme as a custom section — a fullscreen overlay modal that displays when a visitor first arrives on the store. The popup should block access to the site content until the visitor confirms they are at least [MINIMUM_AGE] years old. The modal should display a logo using an image_picker setting, a heading [POPUP_HEADING], a description paragraph [POPUP_DESCRIPTION], and two buttons: Confirm (I am [MINIMUM_AGE] or older) with background color [CONFIRM_BG_COLOR] and Deny (I am under [MINIMUM_AGE]) with background color [DENY_BG_COLOR]. If the visitor clicks Confirm, set a cookie named [COOKIE_NAME] with an expiry of [COOKIE_EXPIRY_DAYS] days and close the overlay. If the visitor clicks Deny, redirect them to [DENY_REDIRECT_URL]. The overlay background should use color [OVERLAY_BG_COLOR] with opacity [OVERLAY_OPACITY]. The modal card should have background color [MODAL_BG_COLOR], text color [MODAL_TEXT_COLOR], border radius [BORDER_RADIUS] pixels, max-width [MODAL_MAX_WIDTH] pixels, and padding [MODAL_PADDING] pixels. The popup should not display in the Shopify theme editor preview so merchants can work on the theme freely. Include a setting to enable or disable the popup globally. Provide complete Liquid, CSS, and JavaScript with no external dependencies. Finally, tell me exactly which section file to create and how to add it to my theme via the Shopify theme editor — and note that I should have legal counsel confirm the age-gate wording meets local regulations before publishing.

How to Use

  1. Copy the prompt above
  2. Open Shopify Sidekick in your Shopify admin
  3. Paste the prompt and replace the bracketed placeholders with your details
  4. Review Sidekick's response and apply the suggestions