In Squarespace, you add the legal guarantee notice to your product pages with a code block, for example in the additional information below the product.
The code for Squarespace
<div data-garantielabel data-darstellung="voll"></div>
<script src="https://www.garantielabel.app/widget.js" async></script>Set further options such as display and language in the code builder.
Step by step in Squarespace
- Open the product
Edit the product in Commerce or on the store page. - Add a code block
Add a code block in the additional information section. - Paste the code
Paste the widget code, leave “Display Source” switched off and save. - Load the script centrally
You can also load the line withwidget.jsonce via the store page’s Code Injection. The placeholder still has to be in every product.
Things to know about Squarespace
- JavaScript in code blocks runs on the Core, Plus and Advanced plans and on the older Business, Commerce Basic and Commerce Advanced plans, not on Basic or Personal.
- Code blocks do not always run in the editor preview; check the live page.
Where the notice goes in Squarespace
Squarespace separates store pages, which show all products in a grid, from the product details pages of individual products. The notice belongs on the product details page. Where your code block appears there depends on the version of your site:
- Version 7.1: You add additional information as a page section on the product details page. According to Squarespace, it displays at the bottom of the page and matches the width of the other content.
- Version 7.0: In the product editor, under “Additional Info”, you can add any block, including code blocks. In most templates, they display directly below the main product images. Galapagos shows a “More Info” link instead, and Supply opens the additional info in an overlay.
For a notice on every page, use the footer. According to Squarespace, content there appears on all pages of your site. In version 7.1, click Edit on any page, hover over the footer and click “Edit footer”. Add a code block there.
The script line can sit centrally in the Code Injection panel, in the “Footer” field. It is then injected before the closing </body> tag of every page. The placeholder still belongs in a code block on the page.
Variants and model identifier in Squarespace
You add variants in the product editor, in the Inventory section. A product can have up to six options and 250 variant combinations. Each variant has its own SKU, plus its own price, stock, weight and images. Variant images display as soon as customers select the variant on the product details page.
Additional information, on the other hand, belongs to the product. A code block there shows the same for all variants. For the GARAN label, this means: if your variants have different model identifiers, create a separate product for each model. Each code block then carries the addresses of the matching label.
Common pitfalls in Squarespace
- Checkout pages don’t support custom code. So the widget shows nothing at checkout.
- Code for a single page (page settings → Advanced) goes into the page’s
<head>. Squarespace advises against adding HTML there: it disappears if you turn off the header’s transparency. Put at most the script line there, never the placeholder. - Code on a page inside an index may not render, and code injection doesn’t appear on index landing pages.
- As a security measure, Squarespace sometimes doesn’t show embedded code while you’re logged in. Check the page in a private window or click “Preview in Safe Mode”.
- Ajax loading can conflict with custom code. Squarespace suggests disabling Ajax to test this.
- If custom code blocks the editor, click “Disable Scripts in Preview” at the bottom of your site. Visitors still see the site with the code.
Further sources
- Squarespace help: Customize parts of your site with code injection
- Squarespace help: Code blocks
- Squarespace help: Add product variants
- Squarespace help: Add additional information to store page products
- Squarespace help: Edit your site’s footer
- Squarespace help: Customize the design of store and product details pages
Legal guarantee notice in the order confirmation
According to the Commission’s guidelines, the notice should also appear in the confirmation email. In Squarespace, you customise the order confirmation in the Commerce settings under customer emails. The official graphic can be added there as an image. A plain link is unlikely to count as a durable medium (CJEU, Case C-49/11, Content Services); the safest way is to put the notice directly in the email as an image, text or attachment. You will find the official files on our download page.
Producer guarantee? Then add the GARAN label
If the producer gives a commercial guarantee of durability of more than two years free of charge for the whole good, the GARAN label also belongs on the product page. With the GARAN label generator you create it in seconds from years, brand and model, your first three labels free and without sign-up. Below every finished label you get an embed code with permanent image URLs: you upload nothing and paste it into Squarespace as shown above.
Prefer your own files? Then upload the full and the nested version to the media library of Squarespace and enter the addresses in the widget code:
<div data-garantielabel data-darstellung="voll"
data-garan-voll="https://…/GARAN-MX-500.svg"
data-garan-klein="https://…/GARAN-MX-500-nested.svg"></div>The widget then shows the nested version below the legal guarantee notice, and one click opens the full GARAN label.
Frequently asked questions
Do I have to add it to every product?
The placeholder, yes, for each product. The script itself can be loaded centrally via Code Injection.
Why the full display?
It is the most robust option in Squarespace. Badge and link work as well, though.
Which plan do I need?
A plan in which code blocks run JavaScript: Core, Plus or Advanced, or Business or Commerce on the older plans.
Does the additional info appear directly below the add-to-cart button?
That depends on the version. In version 7.1, it displays at the bottom of the product details page; in version 7.0, in most templates directly below the main product images.
Why can’t I see my code block when visitors can?
As a security measure, Squarespace sometimes doesn’t show embedded code while you’re logged in. Open the page in a private window or use “Preview in Safe Mode”.
Can I show the notice at checkout too?
Not with the widget. In Squarespace, checkout pages don’t support custom code.