Add falling snow and Christmas lights to WordPress

You don't need a dedicated "snow plugin" for WordPress. Christmas Lights is one line of code, so the free WPCode plugin (or your theme's footer box) is all it takes to add falling snow that piles up, twinkling lights or Santa's sleigh to every page.

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 website at worldofaiagents.com/christmas, verify your email with the 6-digit code, and copy the script tag from the email.

  2. Install WPCode

    In your WordPress dashboard go to Plugins → Add New, search for WPCode, then click Install Now and Activate.

  3. Open Header & Footer

    Go to Code Snippets → Header & Footer.

  4. Paste into the Footer box

    Paste your Christmas Lights code into the Footer box and click Save Changes.

  5. Clear your cache

    If you use WP Rocket, LiteSpeed Cache, W3 Total Cache, WP Super Cache or Cloudflare, clear the cache, then open your site.

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.

Without a plugin (child theme)

add_action( 'wp_footer', function () { ?>
<script async src="https://worldofaiagents.com/christmas/w.js" data-key="XM-YOURKEY" data-style="wonderland" data-until="2027-01-07"></script>
<?php } );

Add this to a child theme's functions.php. Don't edit a parent theme: the change disappears with the next update.

Troubleshooting

The snow doesn't show up
Clear every cache layer (plugin, host and CDN) and check in a private window. Make sure the domain you registered matches your live domain.
It only starts after I scroll or tap
WP Rocket's "Delay JavaScript execution" (and similar options in LiteSpeed or Perfmatters) holds scripts back until interaction. Add worldofaiagents.com/christmas/w.js to the exclusions.
I'm on WordPress.com
Adding scripts needs a plan that supports plugins (Business or higher).

Questions

What is the best free snow plugin for WordPress?

You can skip a dedicated snow plugin. Christmas Lights is a free one-line script you add with WPCode; it adds snow that piles up, Christmas lights or Santa's sleigh and works with every theme, including Elementor, Divi, Astra and block themes.

Will a snow effect slow down WordPress?

No noticeable slowdown. The script is about 14 KB compressed, loads asynchronously and draws on a fixed overlay, so it doesn't affect your layout or Core Web Vitals.

Does it work with WooCommerce?

Yes. The snow sits on a transparent layer that ignores clicks, so product pages, cart and checkout work as normal.

Let it snow on your WordPress 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