01
Copy the code
Each garment card above has a box labelled Popup code for your
product page. Use its Copy the popup code button. The line
looks like this:
<script src="https://damii-lola.github.io/3dGarments/embed.js" data-chart="YOUR_CODE" data-label="Find My Size"></script>
That single line is the entire integration. The data-chart part tells it which size chart to use; everything else is optional.
02
Paste it at the top of your product page
Open your product page's HTML (or your platform's "Custom HTML",
"Additional scripts", or "Code injection" box) and paste that line
at the very top of your <body>, before anything
else. The button will float bottom-right as a FAB.
- Shopify: Online Store → Themes → Edit code → product page template → paste at the top of
<body>.
- WordPress / WooCommerce: Use a "Custom HTML" block or "Code injection" box on the product page.
- Squarespace: Use a Code block set to "Embed" and paste the line.
- Any other site: Paste the
<script> tag right after the opening <body> tag.
Paste it once per garment. A page selling three garments gets three floating buttons, one per size chart.
03
Test it first
Before publishing, click Preview & Customise Popup on a garment
card. The real popup opens over this dashboard, running the same code
your customers will get, and you can change its colours and wording
there. If it looks right here, it will look right on your site.
04
Customise (all optional)
Open the chart card's Preview & Customise Popup panel to
style the floating button and every screen of the size finder to match
your brand. Then copy the updated snippet below.
- Button text:
data-label="Find my fit"
- Colour:
data-color="#2563eb" (any CSS colour)
Example: a green button that says "Find My Size":
<script src="https://damii-lola.github.io/3dGarments/embed.js" data-chart="YOUR_CODE" data-label="Find My Size" data-color="#16a34a"></script>
05
Or just use the link
The The link field on each card works on its own — drop
it into a product description, an Instagram bio, or an order
confirmation email. It opens the same size finder and still knows
which garment it is for. No button, no code.
06
What the shopper does
They click the button, a popup opens over your page (no new tab,
basket untouched), they record one slow 360° turn on their phone,
and they are shown their measurements and which size of
your garment to buy.
Nothing is saved — their video never leaves their phone.
07
If the button doesn't appear
- Paste as HTML / code, not into a visual text editor that strips
<script> tags.
- Shopify, WordPress, Squarespace: use their "Custom HTML", "Additional scripts", or "Code injection" box.
- If your site has a strict Content-Security-Policy, allow
https://damii-lola.github.io in script-src and frame-src.