Add Diwali lights to your Squarespace website
Squarespace's Code Injection lets you add one line to every page of your site. Paste the Diwali Lights code there and your site lights up with diyas, fireworks, a marigold toran or sky lanterns.
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 Squarespace domain at worldofaiagents.com/diwali, verify your email and copy the script tag from the email.
Open Code Injection
In your site's menu go to Settings → Developer Tools → Code Injection. On older dashboards it is Settings → Advanced → Code Injection.
Paste into Footer
Paste your Diwali Lights code into the Footer box.
Save
Click Save and open your live site in a new tab.
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
Code Injection is available on Squarespace plans that include custom code (Core and higher on current plans, Business and higher on older ones). If you don't see Code Injection, your plan doesn't include it.
Troubleshooting
- Nothing shows while I'm logged in
- Squarespace sometimes disables injected scripts in the editor preview. Log out or open your site in a private window.
- I only want the lights on one page
- Instead of site-wide Code Injection, open the page's Settings → Advanced → Page Header Code Injection and paste the code there.
Questions
Does Squarespace have a Diwali theme effect?
Not built in. Diwali Lights adds one through Code Injection for free: diyas, fireworks, a marigold toran, sky lanterns, or all together.
Will it slow down my Squarespace site?
No noticeable slowdown. The script is about 12 KB compressed, loads asynchronously and pauses when the tab is hidden.
Light up your Squarespace 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 Wix 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