Overview
The Search header section sits at the top of the search results page. It shows a large heading, for example Search products, a search field with an optional category picker, and a row of suggested search terms that customers can click to run a search, for example dresses, sweaters, linen. Customers can refine their search without going back to the header. The results and filters appear below it, in the Search results section.
How to use
- Go to Online Store → Themes → Customize.
- From the page selector at the top, choose Search.
- Select Search header.
- Edit the Heading, and choose its Typography.
- Under Search field, choose Show category picker, and optionally enter a Placeholder.
- Under Suggestions, turn on Show suggestions, and enter the Label and Search terms.
- Choose the Color scheme, Section width and Padding.
- Click Save.
Settings
| Settings | Description |
|---|---|
| Color Scheme | Select a predefined color scheme for the section. |
| Heading | Enter the page heading, for example Search products or What are you looking for? You can choose a heading level (H1–H6), and use bold, italic and links. Wrap words in square brackets to highlight them. Leave it empty to show the default heading in the shopper’s language. |
| Typography | Choose the heading style: Default, Paragraph, Subheading, Heading 1–6 or Custom. |
| Font Size | Appears when Typography is Custom. Set the heading size on desktop (10–80 px). |
| Font Size on Mobile | Appears when Typography is Custom. Set the heading size on mobile (10–80 px). |
| Font Weight | Appears when Typography is Custom. Choose Light, Regular, Medium, Semibold or Bold. |
| Line Height | Appears when Typography is Custom. Adjust the space between lines (80–200%). |
| Letter Spacing | Appears when Typography is Custom. Adjust the space between letters (-5 to 10%). |
| Show Category Picker | Show a dropdown of your product types beside the search field, for example All categories, Dresses, Tops. Picking one narrows the results to that type. It needs Product type set up as a filter in Search & Discovery (Shopify’s free app): go to Apps → Search & Discovery → Filters. Without it, the picker isn’t shown. |
| Placeholder | Enter the text shown in the empty search field, for example Search for products. Leave it empty to use the placeholders in Theme settings → Search. |
| Show Suggestions | Show a row of suggested search terms under the search field. |
| Label | Appears when Show suggestions is on. Enter the label before the terms, for example Popular searches. Leave it empty to show the default text in the shopper’s language. |
| Search Terms | Appears when Show suggestions is on. Enter search terms separated by commas, for example dresses, sweaters, linen, sale. Leave it empty to use Theme settings → Search → Suggested tags, or, if those are empty too, your product types. |
| Maximum Suggestions | Appears when Show suggestions is on. Set how many terms are shown (1–12). |
| Section Width | Set how wide the section is: Same as theme, Full width, Wide, Standard, Narrow or Custom. This overrides the theme Content width for this section only. |
| Custom Section Width | Appears when Section width is Custom. Set an exact width (600–2000 px). |
| Padding | Choose Desktop or Mobile under Devices, then adjust the Top and Bottom spacing of the section for that device. |
Tip: Leave Heading, Placeholder and Label empty if your store sells in more than one language. The default text is translated automatically, while text you type shows the same in every language.
Tip: Use the terms customers search for most as Search terms. Find them in Shopify admin → Analytics → Reports → Top online store searches.
SEO tip: Keep the heading as H1, so the search page has one main heading. Change how it looks with Typography, not the heading level.