Store search · Article 1 of 4

Search bar design: making search easy to find and use

For bigger catalogs, show search as an open field on phones, not just an icon. Add a submit button, keep the search words in the box on the results page, clear old filters when shoppers search again, let them search inside the current category, and make search work with a keyboard and screen reader.

In this article · 6 tips
  1. Why search deserves attention
  2. 1Show search as an open field on phones for big catalogs; small stores can use an icon
  3. 2Add a visible search button to the field
  4. 3Show what was searched on the results page
  5. 4When a shopper searches again, clear the old filters and sorting
  6. 5Let shoppers search inside the category they're in
  7. 6Make search work with a keyboard and screen reader
  8. FAQ

In short

  • Shoppers who search usually know what they want, which makes them some of your most valuable visitors.
  • Small stores can keep search behind an icon; big catalogs need it in plain sight.
  • The results page should show what was searched, so shoppers can refine it.

Shoppers who use search tell you exactly what they want, so they tend to buy more often than browsers. But search is also where stores fail quietly: a hidden field, a results page that forgot the query, a filter left over from the last search. These are cheap to fix.

How much search matters depends on your catalog. A store with ten products barely needs it; a store with thousands lives on it.

1Show search as an open field on phones for big catalogs; small stores can use an icon

With a big catalog, show search as an open field on phones, not just a small icon.

Big catalogsSmall catalogs

✕ Avoid

9:41
☰STORE⌕♡🛍1

Search is the small ⌕ icon

Linen shirt

$68

Linen overshirt

$89

A tiny icon among other icons. In a store with thousands of products, many shoppers never find it.

✓ Do this

9:41
☰STORE⌕♡🛍1

Linen shirt

$68

Linen overshirt

$89

A full-width search field under the header. Easy to see, one tap to start.

Why it matters

A magnifying glass icon is easy to miss on a busy phone header, and it adds a tap. For stores where most shoppers search, an open field under the header gets used far more. For small stores with a handful of products, browsing matters more and an icon is fine.

How to do it

  • Big catalogs: show a full-width search field below the header on phones, at least on the homepage and category pages.
  • Small catalogs: a search icon in the header is enough; put browsing first.
  • Write a helpful placeholder ("Search 2,000 products" or "Search boots, bags, belts…").

On ShopifyTheme setting

Most Shopify themes show search as an icon. Some have a setting to show an open search bar on mobile; otherwise it's a small header change.

Quick test: Is search easy to find on phones for the size of your catalog?

2Add a visible search button to the field

Give the search field a visible button. Not everyone knows to press Enter.

All stores

✕ Avoid

9:41
☰STORE⌕♡🛍

No button. Press Enter… if you know to.

No button. Some shoppers type and wait, unsure how to search.

✓ Do this

9:41
☰STORE⌕♡🛍
A clear Search button inside the field.

Why it matters

Not everyone presses Enter, and on some phone keyboards the "Go" key isn't obvious. A visible search button makes submitting clear.

How to do it

  • Add a search button (icon or "Search") inside or next to the field.
  • Make sure the phone keyboard shows a Search key (use type="search").

On ShopifyTheme setting

Shopify theme search forms include a submit button; check it's visible on phones.

Quick test: Is there a visible search button next to the field?

3Show what was searched on the results page

On the results page, keep the search terms in the box, so shoppers can see and adjust them.

All stores

✕ Avoid

9:41
☰STORE⌕♡🛍

Search results

Linen shirt

$68

Linen overshirt

$89

The box is empty and the heading says only "Search results". Shoppers can't see or tweak what they typed.

✓ Do this

9:41
☰STORE⌕♡🛍

124 results for "linen shirt"

Linen shirt

$68

Linen overshirt

$89

The query stays in the box, with the count and the query in the heading.

Why it matters

When the results page shows an empty search box, shoppers can't see what they searched or adjust it. They have to type it all again to add a word or fix a typo.

How to do it

  • Show the search query in the search field on the results page.
  • Show it in the heading too: "24 results for 'linen shirt'".

On ShopifyBuilt in

Shopify's search results template keeps the query in the search field and heading in most themes.

Quick test: Does the results page show the query in the search box and heading?

4When a shopper searches again, clear the old filters and sorting

A new search should start fresh, without the filters from the last one.

All stores

✕ Avoid

9:41
Size 9BlackWaterproof

0 results. Filters from the boots search are still on.

Filters from the previous search carry over, and the new search looks empty.

✓ Do this

9:41

38 results for "sandals"

Slide sandal

$55

Strap sandal

$65

Every new search starts with no filters and the default sort.

Why it matters

A shopper filters results for size M, then searches for something else. If the size filter silently stays on, the new results are mysteriously thin or empty.

How to do it

  • Reset filters and sorting when a new search is submitted.
  • Keep filters only when the shopper is refining the same search.

On ShopifyBuilt in

A new search in Shopify starts without the previous filters by default; check custom search apps.

Quick test: Do new searches start without the previous search's filters?

5Let shoppers search inside the category they're in

On category pages, let shoppers search within that category or the whole store.

Big catalogs

✕ Avoid

9:41

Women › Shoes

Searches everything: bags, belts, dresses…

Searching "black" on the shoes page returns the whole store, and the shoes get lost.

✓ Do this

9:41

Women › Shoes

black in Women's shoes

black in all products

Two options: search within women's shoes, or the whole store.

Why it matters

A shopper in Women's shoes who searches for "black" probably wants black women's shoes, not every black product in the store. Offering to keep the category scope makes results more relevant.

How to do it

  • On category pages, offer a scope option ("Search in Women's shoes" vs "Search all").
  • Or suggest category scopes in autocomplete (see category suggestions).
  • Make it obvious when a search is scoped, with an easy way to search everything.

On ShopifyCode

Shopify search searches the whole store. Category-scoped search needs a search app or custom code.

Quick test: Can shoppers search within the category they're browsing?

6Make search work with a keyboard and screen reader

Search must work with a keyboard and a screen reader: a label, a real button and visible focus.

All stores

✕ Avoid

9:41

Screen reader: "Edit text, blank". The ⌕ icon isn't a button.

No label and an icon that isn't a button. Screen reader users don't know what the field is.

✓ Do this

9:41

Screen reader: "Search products, search field". Button: "Search".

A label, a real button and a clear focus ring.

Why it matters

Search is one of the most-used features for people using screen readers and keyboards. A field without a label, suggestions that can't be reached with arrow keys, or results that aren't announced shut them out.

How to do it

  • Give the search field a label (visible or for screen readers).
  • Make autocomplete suggestions reachable with arrow keys, and announce the number of suggestions.
  • Follow the standard combobox pattern for search with suggestions.

On ShopifyTheme setting

Shopify's own themes build predictive search to accessibility standards; check custom search apps.

Quick test: Can search and its suggestions be used fully by keyboard and screen reader?

FAQ

Should search be visible on mobile?

For big catalogs, yes: an open field gets used more than an icon. Small stores can use an icon.

Where should the search bar go?

In the header, on every page: top center or right on desktop, below the header (or as an icon) on phones.

Sources

Alex Peric

Written by Alex Peric

Conversion designer. I design, redesign and build online stores, product pages and landing pages, A/B test them and show what each change earned. CXL certified in Conversion Optimization and Ecommerce Marketing, and a guest speaker on ecommerce UX at NYU School of Professional Studies.

Let's talk

Let's find out why your visitors aren't buying.

Send me the page. On the call I'll tell you what I'd fix first, what it could move, and whether I'm the right person for it.

Book a call