Search box

Choose how the search box looks, what appears before people type, and whether they can narrow a search to one category.

Shoppers click the box, and a panel opens with suggestions before they type a word. As they type, it fills with matching products, collections and pages.

The Core search panel open under a wide search box, with three trending products and a list of popular searches

The settings live in two places. The look of the box is on the Search box item, in Header main. What the panel shows is in Theme settings > Search, because the panel is shared by every search box.

Pick a style

Style is the first choice, and it depends on how people shop with you.

  • Filled is a tinted box with a search button. It suits big catalogs, where search is how most people find things. Core, Burrow and Ridge use a wide one.
  • Outline is a box with a thin line.
  • Icon is a search icon in the row. Pressing it opens the box over the row. It leaves room for the logo and menu in one row, as in Hanger, and suits small catalogs.

Width sets how much of the row the box takes, and Shape can make it a Pill, Rounded or Square, or follow your other inputs. On phones and tablets, a box in Header main drops to its own line under the logo.

Results panel sets how the panel opens. Around the search box starts it above and beside the box, so the box sits inside the panel. Under the search box opens it below.

Write the hint

Placeholder text is the hint inside the empty box. If you type Rotating words, separated by commas, they show one after another, following Text before the rotating words. For example, Search our store for and tents, rain jackets, boots.

Choose words people really search for. They teach shoppers what you sell.

Fill the panel

Before someone types, the panel can show three kinds of things.

  • Popular searches, in Theme settings. Type search terms, separated by commas. Each one runs that search.
  • Products to show, in Theme settings. Pick a collection, and its first three products appear under Heading above the products. A collection you sort by hand gives you control over which three.
  • Recent searches, which come by themselves. They appear once this browser has searched, and only that shopper sees them.

Turn on Show results while typing to get live results. Shopify decides which suggested searches appear, and that varies by language and catalog.

Add a category list

Category select adds a list inside the box that narrows the search to one category. It only appears on desktop.

OptionWhere the list comes fromUse it when
NoneNo list.You have few categories, or your store is translated.
Product typesThe Type of your products, in the admin.Your product types are tidy, and there are not too many.
MenuThe top-level titles of a Category menu you choose. Each title finds products with a tag of the same name.You want a short list you control. Hanger has no category list, and the other presets work this way.

With Menu, tags need to match the menu titles. A menu item called Audio only finds products tagged Audio. Shopify search cannot be limited to a collection, which is why the theme uses tags.

A category search is more literal than a plain one. It shows products only, matches the start of each word, and does not forgive typos. In a translated store, a translated menu title no longer matches an English tag, so test it in each language.

The search box on phones

Phones show the box in the header, using the same settings. The Mobile menu has its own search box, with its own settings. All the presets set it to search the menu items.

With Show results while typing off in Theme settings, that box searches the menu items only, whatever its Search in says. Its View all results row still opens the search page.

The page people land on when they press Enter is described in Search results.

Something not working?

A category returns nothing. With Menu, check that the products have a tag matching the menu title.

The panel shows no results while typing. Check that Show results while typing is on in Theme settings.

The panel looks empty before typing. Add Popular searches or choose a collection under Products to show.

All settings: Search box
SettingWhat it does
StyleFilled: a tinted box and a search button. Outline: a box with a thin line and a plain icon button. Icon: a search icon in the row; pressing it opens the search box over the row. Options: Filled, Outline, Icon.
Search buttonOptions: Solid, Icon only.
Placeholder text
Rotating wordsOptional. Words separated by commas, shown one after another in the empty search box. Example: laptops, tablets, phones
Text before the rotating words
Change every
WidthOptions: Fill the available space, Large, Medium, Small.
Results panelOptions: Around the search box, Under the search box.
ShapeOptions: Same as inputs, Pill, Rounded, Square.
Category selectA list next to the search field that narrows the search to one category. Desktop only. Product types: the Type field of your products (Products > a product > Product organization). Menu: you choose the list yourself. Options: None, Product types, Menu.
Label of the first optionThe option that searches everything. Empty: "All categories".
Category menuThe first-level titles of this menu are listed. A title finds the products that carry a tag with the same name. Search cannot be limited to a collection.
Show onOptions: All devices, Desktop only, Mobile and tablet only.

On this page