StoreSpan
Blocks

Blocks overview

What a block is, the kinds of block you can make, and 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 too. That is the whole point: one banner design, one set of trust badges, one footer note, kept in one place.

A block holds the same kind of content an injectable can hold, plus, for two kinds, a list of variables that each injectable can fill in differently. See Variables.

The list

Open Storefront › Blocks. Press New block to create one. When the store has no blocks yet the page says No blocks yet. Create one to reuse the same content across injectables. Otherwise it shows a table:

ColumnWhat it shows
NameOpens the block.
KindThe block's content type.
VariablesHow many variables the block declares.
Used byHow many injectables use it.
Statusactive or archived.
UpdatedWhen it was last saved.

Kinds of block

KindWhat it holds
HTMLMarkup, inserted as is.
ScriptJavaScript that runs on the storefront.
TemplateHTML with {{ }} placeholders.
CountdownA live timer.
HTML & CSSMarkup plus CSS that stays inside the block. Can declare variables.
PresetA ready-made design with settings you fill in.
Visual builderA section built by dragging parts, when the builder is turned on for your store.

Three kinds an injectable can be are not available as blocks: a Mega menu, a Kit, and a Blocks stack. A block cannot itself be a stack of blocks; build a Blocks injectable from your blocks instead.

A block also cannot carry page-wide External CSS, because a block is embedded inside other content and must not restyle the page around it. See Content types for what External CSS does on an injectable.

Pages in this section

On this page