Skip to content

Blocks

The search window has places you can fill: the top of the start screen, above the results, and the answer when a search finds nothing. Search → Blocks draws them top to bottom, each with what it holds in the order the widget shows it: a search’s banner above the blocks, the start screen’s banners after them. The same places show wherever the window opens: over the page or under your search field.

Search → Blocks: the places stacked, category tiles above the results, the preview beside them
  1. Open Search → Blocks. With several collections, pick one under Collection: the preview and the banners follow it.

  2. On a place, click Add block and pick what goes there: Category tiles, Banner or Custom HTML. The preview moves to that place and outlines the new block, and its settings open under its card.

  3. Set it up, and move it with the arrows if the place holds several. A click on a block in the preview opens it too.

  4. Click Save changes.

A place holds up to ten blocks. Blocks in No results replace the widget’s own message; the recommendations stay under them. A banner is not part of Save changes: it saves when you click Create banner in its form. See Show banners in search.

Category tiles shows one filter’s values in a row, each with a picture beside its name, or as text only. A tap narrows the results like a tick in the filters, and a second tap undoes it. As the shopper types, the values whose names meet the words come first, the matching part in bold, like an autocomplete; the rest follow in the filters’ order. The row shows 12 values at most, plus a value the shopper picked, greys the ones the shopper’s other choices rule out, and scrolls sideways when they don’t fit.

SettingWhat it doesDefault
Tiles fromThe filter whose values the row showsThe column with the Category role, if it is a filter
LookPhotos: each value’s picture from its filter, else a photo of one of its products; a value with neither shows its name. Text only: namesPhotos

The row is headed by the filter’s own name. On a colour filter, Text only shows each colour beside its name.

Your own markup, written with Mustache like the result template. It reads query (what the visitor typed), collection (the open tab’s name) and total (the number of results). A new block starts empty, and in No results from a friendly message. CSS goes under For developers → Custom CSS at the bottom of the page; inside a block, style with the theme variables so it follows your colours.

A strip of store benefits above the results:

<div style="display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12px;">
<span><b style="color: var(--typemo-brand);">✓</b> Free shipping over €50</span>
<span><b style="color: var(--typemo-brand);">✓</b> 30-day returns</span>
<span><b style="color: var(--typemo-brand);">✓</b> Secure checkout</span>
</div>