Embedding in Squarespace
Add CalcWidgets calculators using Squarespace Code blocks. Includes floating widget setup via Code Injection.
Standard embed
- Edit the page in Squarespace.
- Click + to add a section → choose Code (requires Business or Commerce plan).
- Paste the iframe code from Dashboard → Embed.
- Make sure Display Source is unchecked.
- Click Save.
Floating widget
For a site-wide floating button:
- Go to Settings → Advanced → Code Injection.
- Paste the floating widget code (from the floating widget guide) into the Footer section.
- Save.
The floating widget will now appear on every page of your Squarespace site.
Common Squarespace issues
"I don't have a Code block option"
Code blocks require Business or Commerce plan. The Personal plan doesn't include them. If you're on Personal, your options are:
- Upgrade to Business (worth it if you're running a real business site)
- Use a link to your subdomain instead of an embed — paste
https://yourname.calcwidgets.com/embed?widgets=loan-repayment&view=singleas a button link
"The iframe shows but is the wrong height"
Squarespace doesn't always preserve the inline <script> block that handles auto-resize. Two options:
- Set a generous fixed height in your iframe code (e.g.
height="1200"). - Put the auto-height
<script>block into Settings → Advanced → Code Injection → Header instead of inline with the iframe — that way it's loaded once site-wide and applies to every iframe withid="calcwidgets-frame".
"Display Source" warning
If the Code block shows raw HTML on the live page (instead of rendering the iframe), uncheck the Display Source option in the Code block settings.
Related Articles
Embedding in WordPress
Step-by-step instructions for Gutenberg, Elementor, Divi and Classic Editor, plus the floating widget and shortcode setup.
Embedding in Wix
Add CalcWidgets calculators to your Wix site using the Embed HTML element. Plus floating widget setup.
Embedding in a custom website or static HTML
Paste the embed into any HTML page — your own custom site, Webflow, Framer, Shopify, or anything else.