This guide shows how to add a Squarespace discord widget in about a minute, with no extension: you paste one snippet into a Code Block in the footer or a sidebar section, because a live member count is a standing invitation, so it should follow the reader down every page. No extension. Squarespace renders raw HTML and script tags inside a Code Block, so there is nothing to install from the Extensions marketplace.
What this Squarespace discord widget shows
The Discord widget shows how many members of your server are online right now, as a small pill that invites visitors to join. It's for creators, gaming sites, open-source projects and communities that use Discord as their main gathering place. No bot is needed; it reads Discord's public server widget data.
How to add a Discord members widget to Squarespace
- Step 1
- Edit the page (or the site footer) and click an insert point to Add Block.
- Step 2
- Choose Code, then paste the snippet into the block editor.
- Step 3
- Leave the block's display setting on HTML and save the page.
- Step 4
- Resize the block's column so the widget isn't squeezed, then view the live page.
- On the Personal plan, or no Code Injection?
- 7.1 has no dedicated sidebar, so a narrow Code Block in the footer or in a one-column section is the equivalent. Blog sidebars exist in some 7.0 templates and take the same block.
Where it works best on a Squarespace site
On Squarespace, the right spot is a Code Block in the footer or a sidebar section. A live member count is a standing invitation, so it works best where readers see it on every page, such as a sidebar or header. Before you paste the snippet, turn on the server widget in Discord under Server Settings → Widget, or the count can't be read.
Squarespace plan and editor requirements
On Squarespace's current plans, Code Injection (Settings → Advanced → Code Injection) is available on Core, Plus and Advanced, and on the older Business and Commerce plans, but not on Basic or the older Personal plan. Code Blocks exist on every plan, but JavaScript inside them only runs on those same higher plans, so on Basic you'll see the block but not the widget. Custom code never runs on checkout pages.
Three things that trip people up on Squarespace
- Two different plan gates to know about
- Code Injection (Settings → Advanced) needs Core, Plus or Advanced (or the older Business and Commerce plans). Code Blocks exist on every plan, but JavaScript inside them only runs on those same plans. So on Basic or the older Personal plan you see the block but not the widget — move up a plan or use a service that renders a plain image.
- The editor never shows the widget
- Squarespace renders a grey placeholder for Code Blocks while you're editing and doesn't run injected scripts in the editor at all. Save, then open the live URL in a normal tab — and hard-refresh, because Squarespace caches aggressively at the edge. Most 'it doesn't work' reports are an editor-only check.
- 7.0 templates with AJAX loading can swallow it
- Brine-family 7.0 templates load pages via AJAX, so a script placed in the body may not re-run when a visitor clicks through your nav — the widget appears on first load and vanishes afterwards. Fix: Site Styles → uncheck Enable Ajax Loading, or put the snippet in Code Injection Header instead so it runs once for the whole session.
Honest limits
It shows online members, not your total membership, and it depends on Discord's public widget being enabled. Small servers will show small numbers, which is honest but may look quiet.
Squarespace questions
- Do I need an extension to add a Discord members widget to Squarespace?
- No extension. Squarespace renders raw HTML and script tags inside a Code Block, so there is nothing to install from the Extensions marketplace. Installing an extension for this would mean another dependency and update cycle just to show one widget.
- Where exactly does the snippet go on Squarespace?
- A Code Block in the footer or a sidebar section, because a live member count is a standing invitation, so it should follow the reader down every page.
- Will it slow my Squarespace site down?
- It adds one small script, loaded asynchronously, so it doesn't block your page from rendering. Any third-party script has some cost, so check your page speed before and after adding it. Squarespace serves your site from its own CDN and the snippet is one async tag, so it loads beside your content. Prefer the Footer field over Header in Code Injection for anything script-based — it keeps the tag out of the critical path on every page at once.
- Does it work with page builders like Squarespace 7.1 editor?
- Squarespace 7.1 editor: Add Block → Code. Code Injection: Settings → Advanced → Header or Footer. Page Settings: Advanced → per-page code injection on Business and above. 7.0 templates: same Code Block, plus turn off Ajax loading. Any builder with a raw-HTML or code block will render it.
- Why does the Discord widget show nothing?
- Usually because the server widget is switched off. In Discord, open Server Settings → Widget and turn on 'Enable Server Widget', then reload your page.