Content types
Choose the kind of content an injectable shows, from a ready-made banner to your own HTML, and fill in its editor.
The Content type list in the Content card decides what an injectable shows. Each type has its own editor.

Choose a type
| Type | Use it for | You need to know |
|---|---|---|
| Design preset | A ready-made banner, bar or card. You fill in the words. | Nothing |
| Countdown | A timer that counts down to the end of a sale. | Nothing |
| Mega menu | A navigation menu built from your categories and pages. | Nothing |
| Blocks | Content put together from your saved blocks. | Nothing |
| Visual builder | A section you build by placing parts. Offered only when the builder is switched on for your store. | Nothing |
| Top bar | A bar of messages across the top of your storefront. The messages can change with the shopper. | Nothing |
| HTML | Your own HTML, shown as it is. | HTML |
| Template | Your own HTML with details of the shopper and the page filled in. | HTML |
| Custom HTML & CSS | Your own HTML with its own CSS. | HTML and CSS |
| Script | JavaScript that runs on your storefront. | JavaScript |
A kit, which offers products together at a discount, has its own place in the dashboard. See Kits.
Design preset
- Choose a preset from the gallery.
- Fill in its settings.
To choose another preset, press Change design. StoreSpan looks after the layout of a preset. You change its words and its colours.
A preset does not decide where the content goes. See Put a bar at the top of every page.
| Preset | What it is |
|---|---|
| Announcement bar | A bar with one message. |
| Promo banner | A banner with a headline, text and a button. |
| Email capture card | A card that asks for an email address. |
| Urgency card | A card for an offer that ends soon. |
| Free shipping bar | A bar about free shipping. |
| Geo announcement | A message for shoppers in a country. |
| Welcome back banner | A banner for returning shoppers. |
| Trust badges | A row of promises, such as secure payment. |
| Sale banner | A banner for a sale. |
| Value props | A row of reasons to buy from you. |
| Savings callout | A note about a saving. |
Each preset has its own settings. For example, Promo banner has a headline, a body, a button label and link, two colours, an alignment and a corner radius.
The colours start on Use the store design. Turn that off to choose a colour for this injectable.
Countdown
A countdown shows the time left until a moment you choose. Choose how to set it up:
| Choice | What you get |
|---|---|
| Guided settings | Ready-made countdowns and fields to adjust them. |
| Custom template | Your own HTML around the timer, from starter templates. |
With Guided settings, choose a ready-made countdown from the gallery, then adjust it:
| Field | What it sets |
|---|---|
| Counts down to | The end of the injectable's schedule, or a date and time you enter, in your store's time zone. |
| Countdown style | The look of the timer: classic, or one of the other styles. |
| Digit format | Which units show: from days to seconds, hours to seconds, minutes and seconds, or automatic. |
| Prefix and Suffix | Text before and after the timer. |
| Title and Description | Text above and below the timer. |
| When it reaches zero | Hide the injectable or Show a message. |
In the preview the timer stands still. It counts down only on your storefront.
Keep Prefix and Suffix simple. Text with quotation marks can look right in the preview and break on your storefront.
Mega menu
A mega menu is a navigation menu whose items can open a panel of links and images. Each image in a panel can show a caption.

The items of the menu are on the left. The item you select opens on the right. Removing an item, block, link, image or country variant keeps it in place marked as removed, with an Undo, until your next change to that list. Duplicate makes a copy of an item or block right after it.
| Setting | What it does |
|---|---|
| Label (optional) | The words of the item. |
| Item link (optional) | The category or page the item opens. Clear link makes it a heading with no link. |
| Submenu panel | Gives the item a panel that opens under it. |
| Add block | Adds a group of links, an image, a group of images or a saved block to the panel. A panel holds up to 24 blocks. Each image can show a caption — the link's name by default, your own words, or none — below or above the image, and over it in a group of images. |
Show an item in some countries only
Each item has two ways to depend on the shopper's country. An item uses one of them, not both.
| Setting | What it does |
|---|---|
| Geo-target this item by country | Shows the item only in the countries you choose, or hides it in them. |
| Replace this item per country | Shows a different label and link to the shoppers of each variant's countries. |
Both use the same country list as the top bar: tick countries, find one by typing, press Paste a list, or choose the European Union as one group — see Groups of countries. Two variants of one item cannot cover the same country. A group counts as every country in it, so the European Union on one variant and Germany on another is refused when you save.
Let your theme style the menu
Turn on Emit unstyled HTML to leave out StoreSpan's styling. Your theme's CSS then styles the menu.
Blocks
Put the injectable together from your saved blocks and fill in their values here. See Use blocks in injectables.
You cannot use Blocks inside an A/B test.
Visual builder
Build a section by placing parts on a canvas. See The visual builder.
Top bar
A thin bar of messages across the top of your storefront.
| You can | How |
|---|---|
| Show several messages | Add up to six. Switch on Turn between messages on its own to show them one after another. |
| Match your store | Choose the colours, the spacing and the text size. |
| Change the words for a shopper | Use variables such as geo.countryName or cart.total. |
| Show a message by country | Show it only in the countries you choose, or everywhere except them. The European Union can be chosen as one group. |
| Keep the bar in view | Pin it to the top of the screen. StoreSpan moves your theme's header down to make room. |
| Let the bar scroll with the page | Place it inline. |
See Top bar.
HTML
Enter your HTML in HTML markup. StoreSpan shows it as it is. It holds up to 100,000 characters.
HTML can carry code, for example in an attribute such as onclick. StoreSpan asks for no confirmation when you publish it. Paste only HTML that you trust. The same holds for Template and Custom HTML & CSS.
Template
A template is HTML with variables. StoreSpan replaces each variable with a detail of the shopper or the page.
- Enter your HTML in Template body.
- Put the cursor where a detail belongs.
- Press Insert variable and choose the detail.
For example, Free shipping to {{ geo.countryName }} shows Free shipping to Canada to a shopper in Canada.
Variables you can insert
| Menu label | Variable | What it becomes |
|---|---|---|
| Page type | page.type | home, category, product, cart, search or other. |
| Product ID | product.id | The product of a product page. |
| Product title | product.title | Its name. |
| Product price | product.price | Its price. |
| Category IDs | category.ids | The categories of the page or the product. |
| Category names | category.names | Their names. |
| Category count | category.count | How many categories there are. |
| Cart total | cart.total | The value of the cart. |
| Cart currency | cart.currency | The currency of the cart. |
| Cart item count | cart.itemCount | How many items are in the cart. |
| Visitor type | visitor.type | New, returning or logged in. |
| Country code | geo.country | The shopper's country, as two letters. |
| Country name | geo.countryName | The shopper's country. |
| Region | geo.region | The shopper's region or state. |
| Timezone | geo.timezone | The shopper's time zone. |
| Currency | currency | The currency of your store. |
A variable can do arithmetic with +, -, * and /. For example, {{ product.price + 5 }}.
Your own values
Below the editor you can add your own names and values, and use them as variables. Use them for a value that you repeat, such as the amount for free shipping. You can add up to 50, of up to 2,048 characters each.
Details of the shopper need the loader
With Server-rendered and Static Page delivery, StoreSpan builds the content before a shopper arrives. Your own values are filled in. Details of the shopper stay empty.
Custom HTML & CSS
The editor has a tab for each part.
| Tab | What goes in it | What it affects |
|---|---|---|
| HTML | Your HTML, with variables if you like. | This injectable. |
| CSS | The CSS of this injectable. | This injectable only. It cannot change the rest of the page. |
| External CSS | CSS for the whole page. | Every element of the page the injectable is on. |
External CSS changes your whole page
External CSS can restyle anything on the page, including your theme's header and footer. The preview shows only the injectable, so check the result on your storefront.
StoreSpan removes comments, @import and @charset from External CSS, and leaves out rules that are broken.
The HTML holds up to 100,000 characters. Each CSS tab holds up to 50,000.
Script
A script can read everything on the page
A script runs on your storefront with full access to the page. It can read what a shopper types, send it anywhere and change the page. Publish only a script that you have read and that you trust.
Enter the JavaScript in Script source. It holds up to 50,000 characters.
StoreSpan does not stop a script that runs for too long. A script that never ends freezes the shopper's browser tab.
When you publish an injectable with a script, StoreSpan asks you to type a word to confirm. See Publish content that needs a second look.
Create an injectable
Fill in the form, part by part, from the name of the injectable to the first save.
Top bar
A message bar across the top of your storefront, with messages that can turn one after another, variables filled in for each shopper, per-country text, and the option to move your theme's header out of the way.