# A quantity calculator in a Wix Embed HTML box

> Add a free quantity calculator to Wix or Wix Studio with the Embed HTML element: the exact clicks, code that suits Wix's box, the height to set and fixes.

Page: https://craftquantities.com/embeds/wix/ (embed guide). This is the page's Markdown copy; the HTML page is the canonical version.

Wix runs pasted code inside a box of its own, so this guide's code is made for that box: no script, a credit link that opens in a new tab, and a height you set once in the editor. It works the same in the Wix Editor and in Wix Studio.

- Embed HTML Element
- Not needed Script
- Set in the editor Height
- HTTPS only Wix rule

**On this page Before you start**

## Before you start

- A site in the **Wix Editor** or **Wix Studio**, open for editing.
- The code below, or just the frame's address for Wix's website-address mode.
- A minute in the mobile editor at the end: phones stack the inputs, so the box usually needs more height there.

## Step by step

1. Add the element

   In the Wix Editor click **Add Elements**, then **Embed Code**, and under **Popular Embeds** choose **Embed HTML**. In Wix Studio: **Add Elements**, **Embed & Social**, **Embed Code**.
2. Paste the code

   Click **Enter Code** on the new box, keep **Code** selected, and paste the code below. To frame the calculator by address instead, choose **Website Address** and paste the address from the second block.
3. Apply

   Click **Apply**. The calculator appears inside the box; Wix shows only HTTPS content, and this frame is served over HTTPS.
4. Size the box

   Drag the box's handles: full width of its strip, and tall enough for the whole calculator plus the credit line, about 520 px for the compact format. A box that is too short cuts the bottom off; it does not scroll.
5. Check the mobile view

   Switch to the mobile editor and make the box taller there if the inputs wrap. Wix's mobile editor can resize the box but not change its code.
6. Publish

   Click **Publish** and open the live page on a phone and a computer.

## Your code

_Embed HTML: Code_

```
<iframe src="https://craftquantities.com/embed/?calc=paint-calculator&ev=1&fmt=compact" width="100%" height="460" loading="lazy" style="border:1px solid #e4e4e7;border-radius:12px;max-width:100%" title="Paint Calculator — Craft Quantities"></iframe>
<p style="margin:4px 0 0;font:12px/1.4 system-ui,sans-serif">Calculator by <a target="_blank" rel="noopener" href="https://craftquantities.com/calculators/renovation-construction/paint-calculator/">Craft Quantities</a></p>
```

The frame and the credit line, with the link opening in a new tab so it never loads inside Wix's box. No fitting script: Wix's box cannot be resized from inside it.

_Embed HTML: Website Address_

```
https://craftquantities.com/embed/?calc=paint-calculator&ev=1&fmt=compact
```

The frame's address alone. Wix then draws the frame without the credit line that goes under it, so add a text element under the box that reads "Calculator by Craft Quantities" and links to the calculator's page.

Every other option is in the [full builder](https://craftquantities.com/embeds/#calculator=paint-calculator).

## What visitors see

Your Wix page · Services · Get a quote

Calculator by [Craft Quantities](https://craftquantities.com/calculators/renovation-construction/paint-calculator/)

## Why the height is set by hand

Wix's developer documentation describes the HTML element as a sandboxed iframe that cannot reach the rest of the page. Our frame still measures itself and posts its height, but the message stops at Wix's box, which keeps the size you dragged it to.

So pick the format for the space: compact for a column on a service page, the full calculator only where the box can be tall. As a starting point, give the compact format about 520 px and the full calculator 1,000 px or more, then adjust by eye on the published page.

## Troubleshooting

**The bottom of the calculator is cut off**

Drag the box taller in the editor, and again in the mobile editor. Wix cuts off content that is larger than the box.

**The credit link opens inside the box**

Use the code from the first block: its link carries `target="_blank"`. A hand-written link without it opens the calculator's page inside Wix's frame.

**The box is empty in the editor**

Click **Preview**, or publish and open the live page; some embedded content only runs outside the editing canvas.

**The box overflows on phones**

Wix suggests hiding a wide element on mobile and adding a mobile-sized copy; with this frame, making the mobile box taller is usually enough.

## Why it helps

- A painter, landscaper or flooring fitter on Wix can put a quantity estimate on the service page, so an enquiry arrives with the room or garden already measured.
- No Wix app to install and no monthly fee: the box shows a free calculator served from this site.
- The frame runs no ads, sets no cookies and sends what the visitor types nowhere, so your privacy notice needs no new entry for it.

## Sources

Checked against these help pages on 26 November 2026.

1. [Wix Help Center: Wix Editor, embedding a site or a widget](https://support.wix.com/en/article/wix-editor-embedding-a-site-or-a-widget)
2. [Wix Help Center: Studio Editor, adding an HTML iframe element](https://support.wix.com/en/article/studio-editor-adding-an-html-iframe-element)
3. [Wix Developers: Working with the HTML iframe element](https://dev.wix.com/docs/develop-websites/articles/wix-editor-elements/other-elements/html-i-frame-element/working-with-the-html-iframe-element.md)
4. [Wix Help Center: HTML code on mobile](https://support.wix.com/en/article/wix-editor-html-code-on-mobile)

On this page

At a glance

**Element**

Embed HTML

**Script**

Not needed

**Height**

Set in the editor

**Wix rule**

HTTPS only

Official links

- [The plugin on WordPress.org](https://wordpress.org/plugins/craft-quantities-calculators/)
- [Developer hub](https://craftquantities.com/developers/)
- [Static JSON API](https://craftquantities.com/api/)
- [Remote MCP server](https://craftquantities.com/developers/mcp/)
- [npm package](https://craftquantities.com/developers/npm/)

The one rule

Keep the visible credit line under the frame: it is the one condition of the free embed.

**Open:** the engine’s answers (its JSON API, MCP server and npm package), the data files under /api/v1/ and the formula library (/formulas/) are published under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/): reuse them, commercially too, crediting “Craft Quantities” with a link. **Reserved:** the page text, the design and the software, the engine’s code included. [The terms of use](https://craftquantities.com/terms/)

[The terms, in full](https://craftquantities.com/embeds/#terms)

[Home](https://craftquantities.com/)

Embed & integrations

Pages

- [Overview and builder](https://craftquantities.com/embeds/)
- [WordPress plugin](https://craftquantities.com/embeds/wordpress/)
- [Shopify](https://craftquantities.com/embeds/shopify/)
- [Wix](https://craftquantities.com/embeds/wix/)
- [Squarespace](https://craftquantities.com/embeds/squarespace/)
- [Webflow](https://craftquantities.com/embeds/webflow/)
- [Google Sites](https://craftquantities.com/embeds/google-sites/)
- [Blogger](https://craftquantities.com/embeds/blogger/)
- [Any HTML page](https://craftquantities.com/embeds/html/)

Developers & integrations

- [Overview and live call](https://craftquantities.com/developers/)
- [API reference](https://craftquantities.com/developers/api-reference/)
- [Static JSON API](https://craftquantities.com/api/)
- [Remote MCP server](https://craftquantities.com/developers/mcp/)
- [npm package](https://craftquantities.com/developers/npm/)
- [Command line](https://craftquantities.com/developers/cli/)
- [WebMCP in the browser](https://craftquantities.com/developers/webmcp/)
- [Claude and ChatGPT](https://craftquantities.com/ai/)
- [Embeds and WordPress](https://craftquantities.com/embeds/)
- [Browser extension](https://craftquantities.com/tools/browser-extension/)
- [Changelog](https://craftquantities.com/developers/changelog/)
- [Service status](https://craftquantities.com/status/)

On this page

- Before you start
- Step by step
- Your code
- What visitors see
- Why the height is set by hand
- Troubleshooting
- Why it helps
- Sources

---
Source: https://craftquantities.com/embeds/wix/
Craft Quantities: free to read, cite and link to; the pages are not licensed for republication. Quantities only: no prices, no design and no certification.
