Script&Theory

§22 / SECTIONS

REF: TG–DOC–22 · REV. 1.7

Age gate

Age verification shows a pop-up on a shopper's first visit asking them to confirm their age. The answer is remembered in that browser for the number of days you set. Shoppers cannot close the pop-up with Escape or by clicking outside it.

TANGENT 1.7 / SHOPIFY OS 2.0 / UPDATED 2026-10-19

tangent / sections / age-gate
FIG. 01 — AGE VERIFICATION DIALOGDIAGRAM

A pop-up alone may not meet every legal requirement for age-restricted products. Check the rules that apply to your store.

Add the section

  1. In the theme editor, add Age verification to the footer section group (Add section in the footer area). The section can only be added to the footer group.
  2. Set the Minimum age.
  3. Edit the Heading, Text and Confirm button. In the Text and Confirm button, [age] is replaced by the minimum age.
  4. Edit the Decline button label.
  5. Set a Decline link to send shoppers to another site when they decline. Leave it empty to show the Declined heading and Declined text in the pop-up instead.
  6. Set Remember confirmation for (1–90 days).

The pop-up shows your logo from Theme settings > Logo and favicon, or the store name when no logo is set. It does not show on the password page.

In the theme editor, the pop-up opens only while the section is selected.

Section settings

SettingTypeDefaultOptions / notes
Minimum agenumber18
Headinginline richtextConfirm your age
TextrichtextYou must be [age] or older to enter this store.[age] is replaced by the minimum age.
Confirm buttontextI am [age] or older[age] is replaced by the minimum age.
Decline buttontextLeave
Decline linkurlemptyWhere shoppers go if they decline. Leave empty to show the declined message.
Declined headinginline richtextSorry, you can't enter this store
Declined textrichtextempty
Remember confirmation forrange30 days1–90 days
Color schemecolor schemescheme-1

The section has no blocks.

For developers
Get support ↗