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.
You'll need your free key first. It takes a minute and arrives by email.
Step by step
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.
Open Custom Code
From your Wix dashboard go to Settings, scroll to Advanced and open Custom Code.
Add the code
Click + Add Custom Code and paste your Diwali Lights code into the box. Give it a name like "Diwali Lights".
Choose where it runs
Under Add Code to Pages choose All pages and Load code once. Under Place Code in choose Body – end.
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
- Add Diwali lights to your WordPress website
- Add Diwali lights to your Shopify store
- Add Diwali lights to your Squarespace website
- Add Diwali lights to your Webflow site
- Add Diwali lights to your Blogger blog
- Add Diwali lights with Google Tag Manager
- Diwali lights for React, Next.js and Vue apps
- Deepavali decoration for your website