StoreSpan
Injectables

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.

The Content card of an injectable, with the settings of the design preset Promo banner

Choose a type

TypeUse it forYou need to know
Design presetA ready-made banner, bar or card. You fill in the words.Nothing
CountdownA timer that counts down to the end of a sale.Nothing
Mega menuA navigation menu built from your categories and pages.Nothing
BlocksContent put together from your saved blocks.Nothing
Visual builderA section you build by placing parts. Offered only when the builder is switched on for your store.Nothing
Top barA bar of messages across the top of your storefront. The messages can change with the shopper.Nothing
HTMLYour own HTML, shown as it is.HTML
TemplateYour own HTML with details of the shopper and the page filled in.HTML
Custom HTML & CSSYour own HTML with its own CSS.HTML and CSS
ScriptJavaScript 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

  1. Choose a preset from the gallery.
  2. 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.

PresetWhat it is
Announcement barA bar with one message.
Promo bannerA banner with a headline, text and a button.
Email capture cardA card that asks for an email address.
Urgency cardA card for an offer that ends soon.
Free shipping barA bar about free shipping.
Geo announcementA message for shoppers in a country.
Welcome back bannerA banner for returning shoppers.
Trust badgesA row of promises, such as secure payment.
Sale bannerA banner for a sale.
Value propsA row of reasons to buy from you.
Savings calloutA 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:

ChoiceWhat you get
Guided settingsReady-made countdowns and fields to adjust them.
Custom templateYour own HTML around the timer, from starter templates.

With Guided settings, choose a ready-made countdown from the gallery, then adjust it:

FieldWhat it sets
Counts down toThe end of the injectable's schedule, or a date and time you enter, in your store's time zone.
Countdown styleThe look of the timer: classic, or one of the other styles.
Digit formatWhich units show: from days to seconds, hours to seconds, minutes and seconds, or automatic.
Prefix and SuffixText before and after the timer.
Title and DescriptionText above and below the timer.
When it reaches zeroHide 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 caption controls of a selected mega-menu image: Caption set to Link name showing the link's name, and Caption position set to Below image

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.

SettingWhat 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 panelGives the item a panel that opens under it.
Add blockAdds 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.

SettingWhat it does
Geo-target this item by countryShows the item only in the countries you choose, or hides it in them.
Replace this item per countryShows 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 canHow
Show several messagesAdd up to six. Switch on Turn between messages on its own to show them one after another.
Match your storeChoose the colours, the spacing and the text size.
Change the words for a shopperUse variables such as geo.countryName or cart.total.
Show a message by countryShow it only in the countries you choose, or everywhere except them. The European Union can be chosen as one group.
Keep the bar in viewPin it to the top of the screen. StoreSpan moves your theme's header down to make room.
Let the bar scroll with the pagePlace 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.

  1. Enter your HTML in Template body.
  2. Put the cursor where a detail belongs.
  3. 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 labelVariableWhat it becomes
Page typepage.typehome, category, product, cart, search or other.
Product IDproduct.idThe product of a product page.
Product titleproduct.titleIts name.
Product priceproduct.priceIts price.
Category IDscategory.idsThe categories of the page or the product.
Category namescategory.namesTheir names.
Category countcategory.countHow many categories there are.
Cart totalcart.totalThe value of the cart.
Cart currencycart.currencyThe currency of the cart.
Cart item countcart.itemCountHow many items are in the cart.
Visitor typevisitor.typeNew, returning or logged in.
Country codegeo.countryThe shopper's country, as two letters.
Country namegeo.countryNameThe shopper's country.
Regiongeo.regionThe shopper's region or state.
Timezonegeo.timezoneThe shopper's time zone.
CurrencycurrencyThe 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.

TabWhat goes in itWhat it affects
HTMLYour HTML, with variables if you like.This injectable.
CSSThe CSS of this injectable.This injectable only. It cannot change the rest of the page.
External CSSCSS 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.

On this page