How to Add Custom Code to Squarespace Without Upgrading Your Plan
October 30, 2026 · 5 min read
You found a feature you want on your Squarespace site, maybe a countdown, a before/after slider or a filterable gallery. The instructions say "paste this into a Code Block" or "add this to Code Injection." You try it, and nothing happens. Or Squarespace tells you to upgrade.
That's usually a plan limit, not a mistake. This guide explains what each Squarespace plan lets you add, and a workaround many Squarespace plugin makers use so features work on the entry-level plan too.
What each Squarespace plan allows
Squarespace's current plans are Basic, Core, Plus and Advanced. Older sites may still be on the legacy Personal, Business and Commerce plans. For custom code, they split into two groups:
| Basic (and legacy Personal) | Core, Plus, Advanced (and legacy Business, Commerce) | |
|---|---|---|
| Custom CSS (Design → Custom CSS) | Yes | Yes |
| Simple HTML in a Code Block | Yes | Yes |
| Markdown Blocks | Yes | Yes |
| JavaScript in a Code Block | No | Yes |
| Code Injection (site-wide header and footer code) | No | Yes |
Most interactive features, like sliders, filters, countdowns and toggles, need JavaScript. That's why they work on Core and up, and seem to do nothing on Basic.
Plan details change, so check Squarespace's own pricing page before you decide. You can see which plan you're on under Settings → Billing.
Option 1: Upgrade to Core
If you sell online, need Code Injection for analytics or tracking tools, or plan to add several custom features, upgrading is the simplest and fully supported route. Everything you paste into a Code Block or Code Injection just works.
If upgrading is only for one small feature, the workaround below may save you the difference.
Option 2: The Markdown Block workaround
Squarespace's Markdown Block is meant for formatted text, but it also accepts HTML, including a <script> tag that loads a file. Squarespace plugin makers use this to let Basic and Personal plan customers install their tools, and it has worked for years.
Two honest caveats before you rely on it:
- It isn't officially supported. Squarespace could change how Markdown Blocks behave at any time. If you depend on a feature for sales, test it after Squarespace updates and have a plan B.
- Load code from a file, don't paste it. Markdown changes some symbols (like
*and_), which breaks pasted code. Upload the script as a file and load it with one short line.
Step 1: Upload the script as a file
Squarespace lets you host files on any plan, through the link tool:
- Edit any page and click into a text block.
- Highlight a word, click the link icon, and choose File.
- Upload the
.jsfile. Squarespace hosts it at an address like/s/your-file.js. - Remove the temporary link from the word. The file stays uploaded.
Step 2: Load it from your site footer
Your footer appears on every page, which makes it the right place to load a script once for the whole site.
- Click Edit, hover over the footer, and click Edit Footer.
- Add a Markdown block.
- Paste one line, using your file's address:
<script src="/s/your-file.js" defer></script>
The block looks empty on the page. That's expected. If your site has no footer, put this line in a Markdown block on each page that needs it.
Step 3: Add the feature where you want it
Most script-based tools also need a short HTML tag where the feature should appear, such as <div data-something …></div>. Add a Markdown block there and paste it. Keep it on one line, because Markdown can treat line breaks and blank lines as paragraphs.
Step 4: Check it the way visitors see it
Squarespace often doesn't run custom code inside the editor. If a block looks empty while you're editing, open the page in a private browser window or use preview. That's the real test.
What works well this way, and what doesn't
Good fits: features that load from a single script file and are configured with a short HTML tag or a linked Google Sheet. Sliders, galleries, announcement bars, pricing tables, FAQ sections and countdowns all fit.
Poor fits:
- Code you're told to paste in full (long
<script>…</script>blocks). Markdown may alter it. Look for a version that loads from a file instead. - Long lists typed into a block. Keep data in a Google Sheet and link to it, rather than pasting rows into Markdown.
- Header-only tools. Some tracking and verification codes must sit in the page's
<head>, which Basic plans can't edit. Those genuinely need Code Injection.
Troubleshooting
The code shows up as text. You probably used a Text block. Use a Markdown block, and keep each tag on one line.
Nothing appears. Check the live page, not the editor. Confirm the file address works: open yoursite.com/s/your-file.js in a new tab, and you should see code, not an error.
It worked, then stopped. Republishing or a Squarespace update can change things. Re-check the footer block is still there and the file is still uploaded.
Plug-ins built to work this way
Every Evergreen Code plug-in is built to work on every Squarespace plan. Each loads from one small file, works from a one-line tag, and comes with step-by-step instructions for both Code Blocks (Core and up) and the Markdown Block method (Basic and Personal):
- Before/After Slider: drag-to-compare photos for remodels, landscaping and results.
- Filterable Gallery: a portfolio with category buttons and a lightbox, from a Google Sheet.
- Announcement Bar: a countdown, scheduled messages and a close button.
- Pricing Table: plan cards with a monthly/yearly switch.
Each is a one-time purchase with an unlimited-sites license. If you're not sure whether one will work on your site, ask us before you buy.