How to Add a Professional Looking Age Check to Your Shopify Store
Need to verify your visitors' age before they enter your store? The Age Verification Popup makes it simple. It displays a customizable message asking users to confirm their age before accessing your site, perfect for stores selling age-restricted products like alcohol, vaping accessories, or adult goods.
Want to see it in action? View the live demo to preview how it works in a real store environment.
Installation via Code Editor
The section is easy to install, you can do it in just a few minutes by copy and pasting some code:
- Go to Online Store > Themes > Edit code
- In the Sections folder, click Add a new section
- Name it age-verification-popup.liquid and click Done
-
Copy the code from the gist below and paste it into the file
- Click Save
- Go to Customize and add the Age Verification Popup section to the Header
Customization Settings
Step 1: Basic Setup & Default Preset
Set up the core elements including the title, subtitle, and the button texts for "Accept" and "Deny." You can also define a redirect link for visitors who click "Deny."
Once enabled, the popup works immediately using a clean, modern default preset with balanced styling, allowing you to go live without additional design work.
Visitors who confirm their age can continue browsing normally, while those who deny access will be redirected to your chosen link.
Step 2: Advanced Customization Options (Optional)
Fine-tune the popup’s appearance using the size and color controls. You can adjust font sizes for desktop and mobile, control the background overlay transparency, and customize each button’s text, background, and border colors.
Whether you prefer a minimal design or a bold branded look, every visual detail can be customized. All changes update instantly in the live preview.
Keep Your Store Compliant
The Age Verification Popup helps ensure your Shopify store meets age-gate requirements while maintaining a smooth, professional browsing experience. It remembers users who accept, so returning visitors will not see the popup again unless they use private browsing.
At EZFY Code, we also provide custom development services for merchants who need features built specifically for their business. If you have a custom requirement or idea in mind, feel free to reach out.