Shopify · free forever · no signup

Add a free Discord members widget to Shopify

This guide shows how to add a Shopify discord widget in about a minute, with no app: you paste one snippet into a Custom Liquid block on the template that needs it, because a live member count is a standing invitation, so it should follow the reader down every page. No app. Shopify renders raw HTML and script tags inside a Custom Liquid block, so there is nothing to install from the App Store.

What this Shopify 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 Shopify

  1. 1Go to Online Store → Themes → Customize and pick the template from the dropdown at the top — Product, Blog post, or Default page.
  2. 2Click Add section → Custom Liquid, then drag it where you want it in the page order.
  3. 3Paste the snippet and Save.
  4. 4Shopify's modern themes have no true sidebar, so a narrow Custom Liquid section above the footer is the closest equivalent — and it stays visible on every page you add it to.
Older theme, or no Custom Liquid block? Want it on every page instead of one template? Put the same Custom Liquid block into the Footer section — footer blocks are global, template sections are not.

Where it works best on a Shopify site

On Shopify, the right spot is a Custom Liquid block on the template that needs it. 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.

Shopify plan and editor requirements

Every Shopify plan lets you edit your theme code and add a Custom Liquid section, so no upgrade is needed. The one platform-wide restriction is checkout: Shopify doesn't allow third-party scripts on checkout pages, so widgets work everywhere else in your store, including the home, collection, product, cart and blog pages.

Three things that trip people up on Shopify

Check which theme you actually edited

Shopify lets you customise an unpublished theme, and the editor looks identical either way. If you pasted the snippet, saved, and the live store shows nothing, you almost certainly edited a draft or the duplicate you made as a backup. Online Store → Themes shows which one is under Live — edit that one, or publish the one you edited.

Use Custom Liquid, never the visual editor

Shopify's rich text editor for pages, articles and product descriptions strips script tags on save without warning you. The Custom Liquid block, the <> Show HTML view, and raw .liquid files in Edit code all pass markup through untouched. If your snippet disappeared the moment you saved, that is the reason.

Checkout pages are off limits

Shopify does not allow third-party scripts on checkout — that is a platform restriction, not a widget limitation. Everything else is fair game: home, collection, product, cart, blog, pages and the 404. Put the widget in the footer and it covers all of them in one paste.

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.

What you get, and what it costs

  • Free forever — there is no paid tier, no trial and no card
  • No signup for the badge-style widgets; the live ones create a site ID inline from your URL
  • Async script — it never blocks your page from rendering
  • Works on Dawn and every other Online Store 2.0 theme, on older vintage themes, and inside Shogun, PageFly and GemPages
  • Bots filtered server-side on every visitor-counting widget

Shopify questions

Do I need an app to add a Discord members widget to Shopify?

No app. Shopify renders raw HTML and script tags inside a Custom Liquid block, so there is nothing to install from the App Store. Installing an app for this would mean another dependency and update cycle just to show one widget.

Where exactly does the snippet go on Shopify?

A Custom Liquid block on the template that needs it, because a live member count is a standing invitation, so it should follow the reader down every page.

Will it slow my Shopify 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. Shopify serves your storefront from its own CDN and that doesn't change — the snippet is a single async tag, so it loads alongside your theme instead of in front of it. Nothing needs excluding from Shopify's own minification.

Does it work with page builders like Shogun?

Shogun: drag in the HTML/Liquid element and paste there. PageFly: use the HTML/Liquid element. GemPages: use the Liquid element. Shopify's own theme editor: add a Custom Liquid block. 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.