Add Diwali lights to your Blogger blog

Make your Blogspot blog glow this Diwali with diyas, fireworks, a marigold toran or sky lanterns. There are two ways to add it: a gadget (easiest) or the theme HTML. Blogger themes are XML, so there is one small detail to get right, explained below.

Free · one line of code · about 3 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 blog address (for example myblog.blogspot.com or your custom domain) at worldofaiagents.com/diwali, verify your email and copy the script tag.

  2. Easiest: add an HTML gadget

    Go to Layout, click Add a Gadget in any section (the footer is a good spot), choose HTML/JavaScript, paste your code, leave the title empty, and click Save.

  3. Or edit the theme

    Go to Theme, click the arrow next to Customize → Edit HTML, find </body> and paste your code just above it.

  4. Use async='async' in the theme

    Blogger's theme editor is strict XML, so change async to async='async' before saving (see below), then click Save.

  5. View your blog

    Open your blog. The lights appear on every post and page.

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.

The XML fix for Blogger themes

If you paste the code into Edit HTML, Blogger may refuse to save with an error like "Attribute name async associated with an element type script must be followed by the ' = ' character". Use this version instead:

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

The HTML/JavaScript gadget doesn't need this change.

Troubleshooting

Blogger won't save my theme
Use the async='async' version above, or add the code with an HTML/JavaScript gadget instead.
Wrong domain message
Register the exact address readers use. If you moved from blogspot.com to a custom domain, register the custom domain.

Questions

How do I add fireworks to my Blogger blog?

Register your blog for free at worldofaiagents.com/diwali, choose the Fireworks style, and paste the code into an HTML/JavaScript gadget. Fireworks burst across your blog on every page.

Does it work on the mobile version of Blogger?

Yes, on themes that use the same template for mobile (all modern Blogger themes). The diyas, garland and fireworks scale to phone screens.

Light up your Blogger 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