Wix guide

Wix Editor · Wix Studio · Embed HTML

A quantity calculator in a Wix Embed HTML box

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 HTMLElement
  • Not neededScript
  • Set in the editorHeight
  • HTTPS onlyWix rule

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.

What visitors see

Your Wix page · Services · Get a quote

Calculator by Craft Quantities

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
  2. Wix Help Center: Studio Editor, adding an HTML iframe element
  3. Wix Developers: Working with the HTML iframe element
  4. Wix Help Center: HTML code on mobile