Add a snow effect and Christmas lights to Shopify

The holiday season is the biggest shopping period of the year. Make your Shopify store feel like Christmas the moment shoppers land, with snow that piles up, twinkling lights or Santa flying past, without installing an app or slowing your store down.

Free · one line of code · about 2 minutes
You'll need your free key first. It takes a minute and arrives by email.
Get my free code

Step by step

  1. Get your free widget code

    Register your store's domain (your custom domain, or yourstore.myshopify.com) at worldofaiagents.com/christmas, verify your email and copy the script tag.

  2. Open the code editor

    In Shopify admin go to Online Store → Themes. Next to your live theme click ⋯ → Edit code.

  3. Open theme.liquid

    In the Layout folder, open theme.liquid.

  4. Paste before

    Find </body> near the end, paste your code on the line above it, and click Save.

  5. Check your store

    Open your store in a new tab. The snow shows on home, collection, product and cart pages.

Your code looks like this

<script async src="https://worldofaiagents.com/christmas/w.js" data-key="XM-YOURKEY" data-style="wonderland" data-until="2027-01-07"></script>

Change data-style to wonderland, snowfall, lights, sleigh or icicles whenever you like. data-until switches it off after a date (7 January by default). Optional: data-cursor="off" removes the stardust cursor, data-drift="off" stops snow piling up, data-greeting="holidays" says "Happy holidays", and data-position="right" moves the on/off button.

From Black Friday to New Year

Install it once for Black Friday and leave it. Your code already ends on 7 January with data-until="2027-01-07", so you don't need to edit the theme again after the holidays.

Troubleshooting

The snow doesn't show up
Make sure you saved theme.liquid on the live theme and registered the domain shoppers see.
Should I use Customer events (pixels)?
No. Shopify runs Customer events code in a sandbox that can't draw on your storefront. Use theme.liquid.

Questions

Is there a free Shopify app for a snow effect?

You don't need an app. Christmas Lights is a free line of code for theme.liquid: no app fees, no permissions, nothing left behind when you remove it.

Does it work on Shopify checkout?

Shopify doesn't allow custom scripts on checkout, so the snow shows on the storefront (home, collections, products and cart) but not inside checkout.

Let it snow on your Shopify site today

The snow on this page is the real widget. Try every theme on the main page.

Get my free Christmas lights 🎄

Other guides