Blocks overview
What a block is, when to make one, the kinds of block you can create, and how to read the Blocks list.
A block is a piece of content you build once and use in many injectables. Change the block, and every injectable that uses it changes with it.
Take a free shipping notice. It appears on your home page banner, on your cart banner and on a product page strip. As three separate injectables, a change to the wording means three edits. As one block used by all three, it means one.

When to make a block
| Make a block when | Keep the content inside the injectable when |
|---|---|
| The same content shows in more than one place. | The content is used once. |
| Several injectables share a design and differ in a few words or colours. | Nothing about it is shared. |
Two kinds of block can leave values open for each injectable to fill in, such as a headline or a colour. These are variables. See Variables.
The Blocks list
Open Storefront › Blocks in the left menu. Press New block to create one.
| Column | What it shows |
|---|---|
| Name | The block's name. Press it to open the block. |
| Kind | What kind of content the block holds. |
| Variables | How many variables the block has. |
| Used by | How many injectables use the block. |
| Status | active or archived. |
| Updated | When the block was last saved. |
When your store has no blocks, the page says No blocks yet. Create one to reuse the same content across injectables.
Kinds of block
You choose the kind under Content type when you create a block.
| Content type | Shown in the list as | What it holds |
|---|---|---|
| HTML | HTML | HTML, placed on the page as you wrote it. |
| Custom HTML & CSS | HTML & CSS | HTML with its own CSS, which stays inside the block. Can have variables. |
| Template | Template | HTML with {{ }} variables. Can have values of your own. |
| Design preset | Preset | A ready-made design that you fill in. |
| Countdown | Countdown | A timer that counts down to a date. |
| Script | Script | JavaScript that runs on your storefront. |
The Blocks list shortens two names: Custom HTML & CSS is listed as HTML & CSS, and Design preset as Preset.
Each content type has the same editor as in an injectable. See Content types for the fields of each one.
What a block cannot be
- A Mega menu, a Kit or a page made in the visual builder. Create those as injectables.
- A stack of other blocks. To combine blocks, build a Blocks injectable. See Combine several blocks.
- A carrier of External CSS. A block sits inside other content, so it must not restyle the page around it.
Read next
When a kit does not show
Work through the checklist on the kit's page when a kit is missing from your storefront, and fix what stops a kit from being published.
Create a block
Create a block, choose its content type, save it, make a copy of it, and understand what saving does to the injectables that use it.