How to generate and include an age-check snippet in Shopify

Updated: March 20, 2021

Share:

Drive 20-40% of your revenue with
email, SMS marketing
avada email marketing

Discouraging visitors, who are under a certain age from browsing your store website is considered very necessary and reasonable in case the products you are selling include wine, cigarettes, or dangerous goods. To do this, you can actively add an age verification form to your storefront. Please keep in mind that this method doesn’t meet the age-verification requirements which are associated with recent FDA regulations that govern the sale of cigars, tobacco products, and e-cigarettes.

However, please keep reading our instructional writing on How to generate and include an age-check snippet to know more deeply about this topic.

How to generate and include an age-check snippet

Step 1:

Go to Online Store > Themes from your Shopify Admin panel.

Step 2:

Choose the theme you want to edit and click Actions > Edit code.

How to generate and include an age check snippet in shopify

Step 3:

Expand and view the content of the Snippets folder by clicking on it.

Step 4:

Click Add a new snippet right under the Snippet folder.

Step 5:

Name the new snippet age-check and click Create snippet. Your age-check snippet will be opened in the online code editor.

How to generate and include an age check snippet in shopify

Step 6:

Open this file on a new browser tab.

Step 7:

Copy all available codes that you see and back to your Themes page.

Step 8:

Please paste the code you have just copied into the age-check.liquid snippet in the online code editor.

Step 9:

Tap Save to save all changes.

Step 10:

Locate and click on the theme.liquid file in the Layouts folder to open it in the online code editor.

Step 11:

Scroll down a bit until you see the opening <body> tag in the online code editor.

Step 12:

Paste the code given below right after the opening <body> tag:


  {% include 'age-check' %}

How to generate and include an age check snippet in shopify This will include the age-check.liquid snippet at the very beginning of your theme file’s body content.

Step 13:

Tap Save to save all changes.

Conclusion

Make your store website be more friendly by adding age-check snippet and follow more post from us now!

Recommend for you
Image Description
SMS, Email Marketing Automation

Top rated Marketing automation for Shopify stores

Learn more
Image Description
SEO Suite

Auto-optimize website elements and structure in one-click.

Learn more
proofo
Boost Sales [Free]

Boost sales: Sales Pop, Trust badges, Countdown timer, more

Learn more
Image Description
Photo Reviews [Free]

Use photo reviews to boost sales

Learn more

Comments for Generate and include an age-check snippet



Subscribe

Stay in the know

Get special offers on the latest news from AVADA.

40k subscribers has been joined!

Earn $10 in reward now!

comment
iphone
go up