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
- Why search deserves attention
- 1Show search as an open field on phones for big catalogs; small stores can use an icon
- 2Add a visible search button to the field
- 3Show what was searched on the results page
- 4When a shopper searches again, clear the old filters and sorting
- 5Let shoppers search inside the category they're in
- 6Make search work with a keyboard and screen reader
- 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.
Why search deserves attention
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.
✕ Avoid
Search is the small ⌕ icon
Linen shirt
$68
Linen overshirt
$89
✓ Do this
Linen shirt
$68
Linen overshirt
$89
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.
✕ Avoid
No button. Press Enter… if you know to.
✓ Do this
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.
✕ Avoid
Search results
Linen shirt
$68
Linen overshirt
$89
✓ Do this
124 results for "linen shirt"
Linen shirt
$68
Linen overshirt
$89
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.
✕ Avoid
0 results. Filters from the boots search are still on.
✓ Do this
38 results for "sandals"
Slide sandal
$55
Strap sandal
$65
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.
✕ Avoid
Women › Shoes
Searches everything: bags, belts, dresses…
✓ Do this
Women › Shoes
black in Women's shoes
black in all products
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.
✕ Avoid
Screen reader: "Edit text, blank". The ⌕ icon isn't a button.
✓ Do this
Screen reader: "Search products, search field". Button: "Search".
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.