Wren Street$399Squarespell OriginalSquarespace
How to Edit a Squarespace Code Block (and Let Clients Change It Without Code)
Squarespace Code Blocks show raw HTML to whoever edits them. Four ways to change one safely and hand it to a client, from editing the code and native blocks to two plugins that give clients fields instead of code, with steps, screenshots and prices.

A note on how we make money. Squarespell makes Code Block Editor, the plugin in Method 4 of this guide, and the Synced Sections and Sheet Table plugins shown in the shelves, so weigh that interest. Kleemt is listed on Squarespell with an affiliate link, and we may earn a commission if you buy it through that listing. SQS Mods Code Block Editor+ is not listed on Squarespell and we earn nothing from it. Details are in our affiliate disclosure.
Quick answer
If you want the short version:
- Edit it yourself: open the page editor, click the pencil icon on the Code Block and change the text between the tags. It works on any site, but whoever edits it has to read HTML, and one deleted bracket can break the section.
- Make the changing parts native: rebuild the words, pictures and buttons that change with Squarespace’s own Text, Image and Button blocks, and keep only the styling in Custom CSS. Clients then edit them like any other block. Free, but you lose some layouts only code can make.
- A plugin that reads the code you already have: SQS Mods Code Block Editor+ ($30 one time per site, 5-day trial) turns the text, links, colours and images in a block’s HTML into fields when the Code Block’s editor opens, and can upload new pictures.
- A plugin with an Edit content button on the block: Code Block Editor by Squarespell ($59 for one site at a time, $129 for unlimited sites) lets you choose in a builder exactly which parts a client may change, with character limits, required fields and locked parts, and starts you with eight ready blocks.
The honest caveat: both plugins run from code in Code Injection, which needs the Core plan or higher, and neither turns a Code Block into a native Squarespace block. The HTML is still there; the client just does not have to see it.
Last updated: 1 December 2026
Code Blocks are where Squarespace designs go when the built-in blocks run out: a custom hero, a pricing table, team cards, a row of numbers. More and more of that code now comes from AI tools. The trouble starts after handover. The client wants to change one price or one headline, opens the block, sees a wall of HTML, and either emails the designer or edits it and breaks the section. Squarespace’s own Help Center warns that custom code “might break your site’s appearance or behavior” and that its support team cannot help with it (code blocks article).
This guide covers the four ways to deal with it on Squarespace 7.1: editing the code by hand, moving the changing parts into native blocks, and the two plugins that give the client fields instead of code. We read the Squarespace Help Center articles cited here and the SQS Mods page on 1 December 2026. The Code Block Editor steps and screenshots come from its installation guide (version 1.0.0), and the video below is the plugin’s own tutorial.
What’s in this guide
- What a Squarespace Code Block can and can’t do
- The four methods compared
- Method 1: Edit the code in the Code Block
- Method 2: Move the changing parts into native blocks
- Method 3: SQS Mods Code Block Editor+
- Method 4: Code Block Editor by Squarespell
- Code Block Editor setup, step by step (17 steps)
- Which one fits
- Handover checklist
- Troubleshooting
- What we couldn’t verify
- FAQ
- Where to start
What a Squarespace Code Block can and can’t do
Everything in this table comes from Squarespace’s own Help Center, read on 1 December 2026.
| Question | Squarespace’s answer |
|---|---|
| What can a Code Block hold? | HTML, Markdown, CSS, JavaScript or a code snippet to display (code blocks article) |
| How big can it be? | 400 KB, or about 300,000 characters |
| Does it need a particular plan? | Plain HTML and CSS, no. “To add JavaScript or an iframe to a code block, your site needs to be on the Core, Plus, or Advanced plan.” |
| How do I edit it? | Edit the page, click the pencil icon on the block and change the code in the text field |
| Can I give a client fields instead of code? | Not natively. The block editor shows the code itself; there are no content fields |
| Why can’t I see my code while logged in? | “As a security measure, your code sometimes doesn’t appear while you’re logged in.” Use Preview in Safe Mode |
| Where does site-wide code go? | Code Injection, which “is available in the Core, Plus, Advanced, and some legacy billing plans” (code injection article) |
From the Squarespace Help Center, read 1 December 2026.
The four methods compared
| Method | What the client edits | Cost | Needs Code Injection | Keeps your custom design |
|---|---|---|---|---|
| 1. Edit the code | The raw HTML | Free | No | Yes, if nothing breaks |
| 2. Native blocks | Text, Image and Button blocks | Free | No | Partly; layouts only code can make are lost |
| 3. SQS Mods Code Block Editor+ | Fields made from the block’s HTML | $30 one time per site | Not stated on its page; install steps come by email | Yes |
| 4. Code Block Editor by Squarespell | Only the fields you chose in the builder | $59 one site at a time, $129 unlimited sites | Yes (Core plan or higher) | Yes |
Prices from each seller’s page, checked 1 December 2026.
Method 1: Edit the code in the Code Block
This is how Squarespace intends Code Blocks to be changed, and it costs nothing. It suits a site owner who reads basic HTML, or a designer who keeps the edits for themselves. The steps from the Help Center:
- Edit the page or blog post.
- Hover over the block and click the pencil icon to open the block editor (for a new block: Add block or +, then Code).
- Find the words you want to change in the text field. Only change text between the tags, such as the price inside
<span>$25</span>, never the tags themselves. - Click outside the block, then Save at the top left.
- Check the page while logged out or in Safe Mode, since code can hide while you are logged in.
Before a client touches it: copy the whole block into a text file first, so a broken edit can be undone by pasting the old code back. Squarespace support will not fix custom code, so that copy is the safety net.
Method 2: Move the changing parts into native blocks
Often only a few things in a custom section ever change: a heading, a paragraph, a photo, a button. Those can be Squarespace’s own blocks, styled with Custom CSS, and the client edits them the normal way. Squarespace’s Help Center says the CSS editor is for fonts, colours and backgrounds, and that other CSS changes could harm the site, so keep the CSS small (custom CSS article).
- Rebuild the section with a Text block for the words, an Image block for the photo and a Button block for the link.
- Open the Custom CSS panel (the Help Center article links straight to it); Open in New Window gives a bigger editor.
- Add the styles that make the section look like your design, targeting that section’s blocks.
- Click Save, then check the section on a phone.
What you give up: grids, cards and effects that the block editor cannot place, and some of the design control a Code Block gives. If parts of the content repeat across pages, or a table changes often, two of our plugins keep that content editable without code, and Kleemt sells ready-made native sections:
- Synced Sections: build a section once with the normal Squarespace editor and show it on the pages you pick; edit the original and every copy changes. See also our guide to saved sections.
- Sheet Table: the table lives in a Markdown block or a Google Sheet, so a client changes rows without touching code. See how to add a table in Squarespace.
- Kleemt: ready-made sections and blocks for 7.1, added from a Kleemt category in Squarespace’s own Add Section panel, sold per site.
Method 3: SQS Mods Code Block Editor+
Code Block Editor+ by SQS Mods reads the HTML already in a Code Block, whether you wrote it or an AI tool did, and turns the parts that change into plain fields: text, links, colours, images and repeated items. Its page says the panel opens by itself when the Code Block’s editor opens, and that it “can’t invent a field that isn’t in the code”.
Price: $30 one time per site, every future update included, with a 5-day trial. Each licence covers one site, so ten client sites need ten licences. The page also lists Create, which builds sections with your own Claude subscription, and, from version 5, importing a whole site from a zip.
What the client edits: the page shows the block as visitors see it, the HTML it is built from and the fields made from it, with a per-field undo and an Add an item button for repeated items.
Its feature list adds: docking the panel beside the page, swapping images from the site, the Asset Library or an upload of up to 20 MB, adding, removing and reordering repeated items, step-by-step undo and Revert, an Open in a new tab switch, a separate text size for phones, column reordering (beta), search and filter, and link suggestions for your own pages.
How to set it up and edit with it
The install steps are not public: the page says you enter your email under the price card and “your trial code and install steps arrive in your inbox”, and that install takes under 2 minutes. Its demo shows the editing steps:
- Double-click your Code Block.
- Click what you want to change.
- Type; the page updates as you type.
- Pick a colour or a weight if you need one.
- Click Done, then Save in Squarespace at the top left.
Method 4: Code Block Editor by Squarespell
Code Block Editor works the other way round: you decide what a client may change. In its builder you start from one of eight ready blocks or paste your own HTML and CSS, tick the parts that may change and name them. While the page is edited, each of those blocks gets an Edit content button, and the client gets a panel with only those fields. Everything else stays locked, and visitors get plain HTML with nothing running for them.
What the client gets in the panel, according to its listing and guide:
- Text fields with a character counter, so a long heading cannot break the layout.
- Pictures: one already on the page with one click, or a picture address, plus a description for screen readers.
- Colours from your site’s own palette as swatches, or any colour.
- Sizes with their own value on phones.
- Lists the client can add to, reorder and shorten, such as a pricing plan’s features.
- Save in the panel saves the page too (or only applies the change, if you prefer).
Price: $59 for one website at a time, or $129 for unlimited websites (Multi-Use), one payment. The licence key is activated in the builder for a website address; the blocks themselves are plain HTML. You can try the panel on the live demo before buying, or read the Code Block Editor listing.
Limits to know: editing works in the Squarespace editor in a computer browser (tested in Chrome) and in its phone preview, not in the Squarespace app. Pictures cannot be uploaded from the panel; upload them to the page or the asset library first. Only blocks made with the builder get the panel.
Code Block Editor setup, step by step
These are the 17 steps of the Code Block Editor installation guide (version 1.0.0), in its three parts, with every screenshot from the guide. Numbers in the captions match the numbered marks on each screenshot.
| From the guide | |
|---|---|
| What it does | You make a block in the builder; your client presses Edit content on it in the Squarespace editor and gets a panel with only those fields. Everything else stays locked. Visitors see plain HTML |
| You need | Squarespace 7.1, the Core plan or higher (for Code Injection), and your licence key from the order email |
| Where it goes | The editor code once in Pages, Custom Code, Code Injection, Footer. Each block in its own Code Block (Mode: HTML) |
| Edited on | A computer browser, in the normal Squarespace editor (also in its phone preview). The Squarespace app on phones is not supported for editing |
| It does not change | Your template, your other blocks or Squarespace settings. Code Blocks not made with the builder stay as they are |
From the Code Block Editor installation guide, version 1.0.0.
- Part 1: The builder (steps 1 to 8)
- Part 2: Squarespace (steps 9 to 11)
- Part 3: Editing (steps 12 to 17)
Part 1: The builder (steps 1 to 8)
Step 1: Open the builder
Unzip the download and open Code-Block-Editor-Builder-Single-License.html (or the Multi-Use one) in Chrome, Safari, Firefox or Edge. It works offline and there is nothing to install. You can try everything in the preview before activating.
Step 2: Enter your license key
Type the key from your order email (it starts with SQSP) and the address of the website, then press Activate. Your site’s built-in squarespace.com address always works too, so you can install before your domain is connected. The copied editor code then works on that website; the blocks themselves work on any site.
Step 3: Set up the panel
Tab 1, The editor, is set once per site. Pick the colour of the Edit content button and the panel, which side the panel opens on, and whether the button always shows on each block or only when the pointer is on it. The preview on the right is a sample page in edit mode with the real panel open.
Step 4: Decide what Save does
“Saves the page too” is the default: Save in the panel puts the change in the block and saves the page, so it is live at once. “Only applies the change” means your client presses Save at the top left afterwards, the normal Squarespace way. For the code itself, choose an Edit code link at the bottom of the panel, or hide it from clients; hidden, you still reach the code by holding Option (Mac) or Alt (Windows) and pressing Edit content. Under Words you can change every word of the panel, for example into your client’s language.
Step 5: Pick a ready block, or start from your own code
Tab 2, Blocks, has eight ready blocks in your site’s fonts: hero banner, call to action, pricing table, team member, testimonial, feature list, image and text, and numbers row. Or choose Your own code. The right side shows the block on a sample page and, next to it, exactly the panel your client will get. Type in that panel to set the real words before you copy.
Step 6: Name what your client can change
Give the block a name your client recognises. Rename each part, untick a part to lock it (its value stays as it is), set the most characters a text may have so the layout stays safe, and tick Must not be empty where a part is needed.
Step 7: Your own code: tick what may change
Paste the HTML and CSS of a block you made, or one an AI tool made for you. The builder finds the headings and texts, formatted text, links and buttons, pictures (also background pictures), lists and the colours in the CSS. Tick the ones your client may change and name them. A ticked colour becomes a CSS variable the panel changes; everything else in your code stays exactly as you wrote it.
Step 8: Copy the code
Press Copy editor code in tab 1 (once per website) and Copy block in tab 2 (once per block). If your browser blocks copying, Show code opens the code with everything selected. Copy is refused until the licence is activated; the preview always works.
Part 2: Squarespace (steps 9 to 11)
Step 9: Paste the editor code into Code Injection, Footer
In Squarespace open Pages and scroll down to Custom Code, Code Injection (older menus: Settings, Advanced, Code Injection). Click into Footer, go to the end of anything already there, start a new line, paste, and press Save. Other code in the Footer stays as it is. You do this once per website.
Step 10: Add a Code Block
Open the page, press Edit, then Add Block, type Code and pick the Code block.
Step 11: Paste the block and save the page
The new block opens with “Hello, World!”. Keep Mode: HTML, select everything in the code box (Cmd+A or Ctrl+A), paste your block, click outside the block, then press Save at the top left. Resize the block with its handles like any block.
Part 3: Editing (steps 12 to 17)
Step 12: Press Edit content on the block
This is what you or your client do from now on. Open the page and press Edit. Every block made with the builder shows an Edit content button at its top right. Visitors never see it.
Step 13: Change what you need
The panel shows only the parts the designer made editable, grouped and named. Every change shows on the page at once. Long blocks get a search box, and text fields show how many characters fit.
Step 14: Pictures, colours, sizes and lists
Pictures: pick one of the pictures already on the page, or paste a picture address, and write its description for screen readers. Colours: your site’s own colours as one-click swatches, or any colour. Sizes can have their own value on phones. Lists: add, move up and remove items; Enter adds the next one.
Step 15: Save
Press Save in the panel. The change goes into the block’s own code and the page is saved (unless the designer set the panel to apply only; then press Save at the top left). Cancel puts everything back. Undo my changes starts the block over from the saved version.
Step 16: On phones
Blocks made with the builder arrange themselves for narrow screens. Check them with the phone button at the top right of the editor; the Edit content button works there too.
Step 17: For designers: the code is still there
A double-click on the block opens the panel too. Edit code at the bottom of the panel shows Squarespace’s own code box for the block. With the code hidden from clients, hold Option or Alt and press Edit content.
Change settings later, and moving the licence
To change panel settings, open the builder (it remembers your settings in that browser), change them, press Copy editor code, and in Code Injection, Footer replace the old Code Block Editor part, from its first comment line to the line End Squarespell Code Block Editor, with the new one. Save. To change a block’s fields (names, limits, locks), open the builder, choose Blocks, Your own code, and paste the block’s current code from its Code Block; the builder reads its field list. Change it, press Copy block and paste it back into the same Code Block.
A Single License works on one website at a time: on squarespell.com open My Account, Licenses and press Deactivate next to the old site, then in the builder use Use another website or key, activate the new address and paste the new editor code into that site’s Footer. A Multi-Use License activates each website in the builder with no limit.
Which one fits
- You edit your own site and read HTML: Method 1. Keep a copy of the code before each change.
- The client changes a heading, a paragraph and a photo, nothing else: Method 2. Native blocks with a little CSS cost nothing and need no plugin.
- You want fields from code you already have, with image upload: SQS Mods Code Block Editor+. It reads the HTML as it is and uploads pictures from the panel; Code Block Editor by Squarespell does not upload pictures.
- You want to decide exactly what a client may change: Code Block Editor by Squarespell. Locked parts, character limits and required fields are set per block in the builder, and the button sits on the block itself.
- You look after many client sites: SQS Mods is $30 per site, so five sites cost $150; Code Block Editor’s Multi-Use License is $129 for unlimited sites. For one or two sites, SQS Mods costs less.
- You need ready-made blocks: Code Block Editor includes eight; SQS Mods offers Create, which builds sections with your own Claude subscription.
Handover checklist
- Copy every Code Block into a text file and keep it with the site files.
- Decide which parts the client may change, and lock or leave out the rest.
- Set limits on headings and buttons so a long word cannot break the layout.
- Check every block in the editor’s phone preview.
- Show the client the button or double-click that opens the fields, and where Save is.
- Tell the client that changes may only show to visitors after Save at the top left.
- Write down the plan the site is on: Code Injection needs Core or higher.
Troubleshooting
| Problem | Fix |
|---|---|
| The block looks empty while I’m logged in | Squarespace sometimes hides code while you are logged in; use Preview in Safe Mode or check logged out |
| My script or iframe doesn’t run | JavaScript and iframes in Code Blocks need the Core, Plus or Advanced plan; scripts also do not run in the editor |
| A client edit broke the section | Paste the copy of the old code back into the Code Block and save |
| No Edit content button (Code Block Editor) | The editor code is not in Code Injection, Footer or not saved there; the block was not made with the builder; or the page is not in edit mode |
| Works on the squarespace.com address but not my domain | The editor code is activated for another address. Activate your domain in the builder and paste the new editor code |
| “This block could not be opened” | The page was still loading into the editor. Wait a moment and press Edit content again, or double-click the block; reload the editor if it still fails |
| “Leave site?” after Cancel | Squarespace counts a block it opened as changed. Leaving without saving is safe |
| Text too long, Save refused | The designer set a character limit. Shorten the text until the counter turns grey |
| A change does not show to visitors | Press Save at the top left (needed when the panel only applies changes), then reload the live page |
From the Squarespace Help Center and the Code Block Editor installation guide (version 1.0.0), read 1 December 2026.
What we couldn’t verify
We did not install SQS Mods Code Block Editor+ for this article. Its price, features and editing steps come from its own page, read on 1 December 2026; its install steps are sent by email and were not seen, so we cannot say whether it needs Code Injection or which plan it needs. The Code Block Editor steps and screenshots come from its installation guide, version 1.0.0, which says editing was tested in Chrome on a computer and in the editor’s phone preview; Safari and Firefox editing are not listed as tested. Squarespace facts come from the Help Center articles linked above. We checked every fact, price, caption and alt text in this article against those sources by hand.
FAQ
Can you edit a Code Block in Squarespace? Yes. Edit the page, click the pencil icon on the Code Block and change the code in the text field, then save the page. Squarespace shows the code itself; it has no content fields for Code Blocks.
Can my client edit a Code Block without touching code? Not with Squarespace alone. Either move the changing parts into native Text, Image and Button blocks, or use a plugin such as SQS Mods Code Block Editor+ or Code Block Editor by Squarespell, which give the client fields instead of HTML.
Which Squarespace plan do I need? Plain HTML and CSS in a Code Block work without a higher plan. JavaScript or an iframe in a Code Block needs Core, Plus or Advanced, and Code Injection (which Code Block Editor uses) needs Core or higher, or some legacy plans.
Does it work with code made by ChatGPT or Claude? Yes for both plugins: SQS Mods reads whatever HTML is in the block, and Code Block Editor’s Your own code finds the texts, links, pictures, lists and colours in pasted HTML and CSS so you can tick what may change.
Can a client upload a new photo from the panel? In SQS Mods Code Block Editor+, yes (up to 20 MB, per its page). In Code Block Editor by Squarespell, no: pick a picture already on the page or paste its address, so upload it to the page or asset library first.
Can my client edit on a phone? Code Block Editor works in the editor’s phone preview on a computer, but not in the Squarespace app. SQS Mods does not say on its page.
Will a plugin slow my site down? Code Block Editor runs only while the page is edited; visitors get plain HTML. SQS Mods says its panel only loads when someone opens a Code Block to edit it.
Does it work on Squarespace 7.0? Code Block Editor is for 7.1. The methods in this guide are written for 7.1.
Where to start
If only a heading and a photo ever change, move them into native blocks today; it is free. If the design has to stay in code, try the Code Block Editor demo: press Edit content on a block and type in the panel, then see the listing.
Reviewed and last updated 1 December 2026. All prices checked on that date.
- Quick answer
- What’s in this guide
- What a Squarespace Code Block can and can’t do
- The four methods compared
- Method 1: Edit the code in the Code Block
- Method 2: Move the changing parts into native blocks
- Method 3: SQS Mods Code Block Editor+
- Method 4: Code Block Editor by Squarespell
- Code Block Editor setup, step by step
- Which one fits
- Handover checklist
- Troubleshooting
- What we couldn’t verify
- FAQ
- Where to start










