All website builders
Squarespace guide

Add interactive widgets to your Squarespace site

A Squarespace Code block puts a widget exactly where you want it on a page. Code Injection loads popups and floating widgets on every page.

What you need: A Squarespace plan that allows JavaScript in Code blocks and Code Injection. The entry-level Personal plan does not; check your plan’s feature list.

Put a widget on a page

  1. In Plyrel, publish your widget and press Copy code.
  2. Edit the page, press Add Block and choose Code.
  3. Delete the placeholder text, paste the code, and leave the type set to HTML with Display Source switched off.
  4. Save the page.

Squarespace may show “Script disabled” while you are editing. That is normal. Save and view the live page to see the widget.

Show a popup or bar on every page

  1. Open Code Injection. On newer sites it is under Custom Code in the Pages panel; on older sites under Settings, Advanced.
  2. Paste the widget’s code into the Footer box.
  3. Press Save.

Good to know

  • Always check the widget in a private browser window, not while logged in to the editor.
  • Every published widget also has a page of its own with a link and QR code. If your plan does not allow code, add a button that links to that page instead.

Popular on Squarespace

Questions people ask

I pasted the code but nothing shows.

Check that the Code block is set to HTML, that Display Source is off, and that your plan allows JavaScript. Then view the live page rather than the editor.

Will the widget match my template?

It will not pick up your template’s styles automatically, which also means your template cannot break it. Set your colours and fonts in the Plyrel studio.

Make your first widget free

Three widgets, unlimited views, no card. It takes a few minutes to have one live on Squarespace.