Add Diwali lights to your Wix website

Wix lets you add a small piece of code to every page through its Custom Code settings. That's all Diwali Lights needs to put glowing diyas, fireworks, a marigold toran or sky lanterns on your Wix site.

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 Wix site's domain at worldofaiagents.com/diwali, verify your email and copy the script tag from the email.

  2. Open Custom Code

    From your Wix dashboard go to Settings, scroll to Advanced and open Custom Code.

  3. Add the code

    Click + Add Custom Code and paste your Diwali Lights code into the box. Give it a name like "Diwali Lights".

  4. Choose where it runs

    Under Add Code to Pages choose All pages and Load code once. Under Place Code in choose Body – end.

  5. Apply

    Click Apply and open your live site. The lights appear immediately; you don't need to republish.

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.

Plan requirement

Wix only runs Custom Code on sites with a connected domain, which needs a paid Premium plan. On a free wixsite.com address the Custom Code option is not available.

Troubleshooting

I can't find Custom Code
It appears only for sites with a connected domain. Check under Settings → Advanced. In Wix Studio it is under Site settings → Custom code.
The lights don't show in the Editor
Custom Code runs on the published site only, not in the Wix Editor or preview. Open your live domain to see them.
Wrong domain error in the browser console
Register the exact domain your visitors use. A key covers the domain and its subdomains, such as www.

Questions

Can I add Diwali animation to a free Wix site?

Not with code. Wix only allows custom code on Premium sites with a connected domain. Once you have one, Diwali Lights is free.

Will it interfere with my Wix layout or buttons?

No. The lights are drawn on a transparent overlay that ignores the mouse and touch, so every Wix element, form and button keeps working.

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