StoreSpan
Blocks

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.

This page follows one example: a free shipping notice for an outdoor clothing shop. You build it as a block named Free Shipping Promise, so that several banners can share it.

Create the block

  1. Open Storefront › Blocks and press New block.
  2. Under Details, enter a Name. The name is for your team and is required. Description is an optional note.
  3. Under Content, choose a Content type. For the example, choose Custom HTML & CSS.
  4. Enter the content in the editor that appears. You can paste HTML that someone gave you.
  5. Press Create block.

The block form with its Details and Content cards filled in for a free shipping notice

The HTML in the picture uses two variables, accent and minimum. You set them up on the next page, Variables.

The editor is the same one an injectable has for that content type. See Content types for its fields.

The form also has a Variables card. Use it to leave values open, such as the order amount in "Free shipping over $75". See Variables.

What saving does

Saving a block changes your storefront

When you save a block, every injectable that uses it changes. Live injectables show the new content within about a minute. You do not publish them again.

The form reminds you of this under the editor: Saving a block updates every injectable that uses it — active injectables pick the change up within about a minute. Archiving a block stops every injectable still using it from serving.

You cannot archive a block while injectables still use it. StoreSpan refuses and names them. See Archive a block.

To see which injectables a block will change, look at the Used by panel under the form. See The Used by panel.

Change a block

  1. Open the block from the Blocks list.
  2. Make your changes.
  3. Press Save changes.

Make a copy

Duplicate makes a new block from the last saved version of this one. Changes you have not saved are not copied, and you lose them when the copy opens. Save first if you want them.

The copy is named after the original with (copy) at the end. It is active straight away. No injectable uses it until you choose it in one.

Limits

LimitValue
Name200 characters
Description2,000 characters

The content has the same limits as in an injectable. See Limits.

Messages you may see

MessageWhat to do
A name is required.Enter a name.
This block was changed elsewhere since you opened it. Reload the page to get the latest version, then try again.Someone else saved the block while you had it open. Reload, then make your change again.
The block change could not be completed. Please try again.Try again. If it keeps failing, contact StoreSpan support.
A message in red under a variableThe content and the variables do not match. See What saving checks.

On this page