Platform Guides

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.

2 min read
Updated 14 May 2026

If you're building a site with raw HTML, or using a platform we don't have a dedicated guide for (Webflow, Framer, Shopify, Ghost, etc.), the embed code works the same way: paste it into an HTML/embed block.

The pattern

Most modern site builders have an "HTML embed" / "Custom code" / "Code block" element. Drop one onto your page and paste this:

<iframe
  src="https://yourname.calcwidgets.com/embed?widgets=loan-repayment&view=tab"
  width="100%"
  height="800"
  frameborder="0"
  id="calcwidgets-frame"
  title="Mortgage Calculators"
  style="border: none;">
</iframe>
<script>
window.addEventListener('message', function(e) {
  if (e.data && e.data.type === 'calcwidgets-height') {
    document.getElementById('calcwidgets-frame').style.height = e.data.height + 'px';
  }
});
</script>

Replace yourname with your subdomain and update the widgets= and view= parameters to match what you want to show.

Platform-specific notes

Webflow

Framer

Shopify

Ghost

Plain static HTML

Embedding the URL directly (no iframe)

You can also link to your subdomain URL as a normal link or button:

<a href="https://yourname.calcwidgets.com/embed?widgets=loan-repayment&view=single">
  Try our loan repayment calculator
</a>

The visitor leaves your site for the duration but lands on a full-page calculator with your branding. Useful if your platform doesn't allow embeds.

Content Security Policy (CSP)

If your site has a strict CSP, you need to allow CalcWidgets:

frame-src https://*.calcwidgets.com;

Without this, the iframe will silently fail to load.

Related Articles