Skip to content

Show banners in search

A banner puts a promo, sale or announcement on the screen shoppers see when they open search, before they type, or above the results of the searches you choose. You change it in the dashboard; your site stays as it is.

Banners show in the catalog widget only. A docs widget or an API-only project has none.

  1. Open Search → Blocks. If the project has several collections, pick one under Collection. Each collection has its own banners.

  2. Pick the place: Start screen for the screen that opens with search, or Above results for the searches you choose. Click Add block there, then Banner.

  3. Under Banner image, click Upload and choose the image. Put the headline and the offer in the artwork: the image is the whole banner.

  4. In Above results, under For searches, add the searches it answers: type one, choose Contains or Exact, and press Enter. A start-screen banner needs none.

  5. Under Link URL, enter where a click lands. Turn on Open in new tab for a page outside your store.

  6. Click Create banner. It saves at once, apart from Save changes, and shows in the widget straight away.

Search → Blocks with the places stacked and Add block on each, the widget preview on the right
Search → Blocks
CaseWhat happens
On the start screenAt the start of the Recommended for you row, on the screen that opens with search. They go once the shopper types.
For searchesAbove the results, the width of the results. Contains answers any search with the words, Exact only that search.
Several for one searchThe closest match shows: an Exact one first, then the longest matching words. A tie goes to the banner higher in the list.
WhichThe active banners of the collection whose tab the shopper has open.
ShapeOn the start screen a banner fills the space of one product card and is cropped to fit. Keep the message away from the edges.
OrderTheir own order in the place, set with the arrows on their cards.
PausingThe switch on its card hides a banner without deleting it. Click the card to change the banner.
LinkOptional. A link typed without https:// gets it added.
ImagePNG, JPG, WebP or GIF, up to 2 MB. Typemo resizes it to fit. An animated GIF shows its first frame.
Banners per collectionUp to 10.
Your own codeThe Search API returns the banner for a search in banner; InstantSearch’s hits widgets read it.

Open Test your search and open search without typing. A start-screen banner should lead the Recommended for you row. For a banner in Above results, search one of its searches: it should sit above the results.

Next: once the shopper types, custom results and boosting shape what they see.