Add Diwali lights to your WordPress website

Give your WordPress site a festive glow this Diwali: glowing diyas, fireworks, a marigold toran or floating sky lanterns. You only need the free WPCode plugin (or your theme's footer code box) and the one-line code we email you. No page builder changes, no theme edits.

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/diwali, 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 (by WPCode, formerly "Insert Headers and Footers"), then click Install Now and Activate.

  3. Open Header & Footer

    Go to Code Snippets → Header & Footer in the left menu.

  4. Paste into the Footer box

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

  5. Clear your cache

    If you use a caching plugin (WP Rocket, LiteSpeed Cache, W3 Total Cache, WP Super Cache) or Cloudflare, clear the cache, then open your site. The lights appear straight away.

Your code looks like this

<script async src="https://worldofaiagents.com/diwali/w.js" data-key="DL-YOURKEY" data-style="grand"></script>

Change data-style to diyas, fireworks, toran, lanterns or grand whenever you like. Optional: data-sparkler="off" removes the cursor sparkler, data-until="2026-11-20" switches the lights off after a date, and data-position="right" moves the small on/off button.

Without a plugin (child theme)

If you prefer not to add a plugin and you use a child theme, add this to the child theme's functions.php:

add_action( 'wp_footer', function () { ?>
<script async src="https://worldofaiagents.com/diwali/w.js" data-key="DL-YOURKEY" data-style="grand"></script>
<?php } );

Don't edit a parent theme directly: the change disappears with the next theme update.

Troubleshooting

The lights don't show up
Clear every cache layer (plugin, host and CDN). Then view your site in a private window. Make sure the website you registered matches your live domain: a key for myshop.com also works on www.myshop.com and any subdomain, but not on a different domain.
They appear only after I scroll or tap
WP Rocket's "Delay JavaScript execution" and similar settings in LiteSpeed or Perfmatters hold back scripts until the visitor interacts. Add worldofaiagents.com/diwali/w.js to the delay exclusion list.
I'm on WordPress.com
Plugins need a plan that supports them (Business or higher). On a free or Personal plan you cannot add scripts.

Questions

Is there a WordPress plugin for Diwali lights?

You don't need a special plugin. Diwali Lights is a single script tag, so any header-and-footer plugin such as WPCode adds it to every page in under a minute, and it works with every theme, including Elementor, Divi, Astra and block themes.

Will Diwali Lights slow down my WordPress site?

No noticeable slowdown. The script is about 12 KB compressed, loads asynchronously after your page, and does not affect your Core Web Vitals layout scores because it draws on a fixed overlay.

Does it work with Elementor and WooCommerce?

Yes. The lights sit on a transparent layer above your pages, so Elementor layouts, WooCommerce product pages, carts and checkouts all keep working as normal.

Light up your WordPress site today

The lights on this page are the real widget. Try every style on the main page.

Get my free Diwali lights 🪔

Other guides