# Search results

> The search page: results with filters and sorting, links to switch between products, articles and pages, and helpful suggestions before a search and when nothing is found.

Tally theme documentation · HTML version: https://themelab.page/tally/docs/sections/search-results/

## At a glance

- **In the editor:** Search results
- **Where it goes:** Its own template – open that kind of page in the editor
- **In the presets:** Every preset: Search
- **Settings:** 30
- **App blocks:** Yes

## Results

The results work like a collection's [Product grid](https://themelab.page/tally/docs/sections/product-grid.md): products per page and per row, the 2/3/4 and list switch, the default view, pagination, filters (from the Search & Discovery app) and sorting.

**Show result type links** adds *All*, *Products*, *Articles* and *Pages* under the search field.

## Before a search and when nothing is found

With **Show popular searches, collections and products** on, the page is never empty:

- **Popular searches** from **Theme settings › Search**, as chips.
- The **Collections** you pick.
- A grid of products (**Products to show**, 4–12) from **Products from** – or the collection in Theme settings > Search, or all products.

The same suggestions appear under a search with no results, so shoppers always have a next step.

> **Tip:** Better matches
>
> In the **Search & Discovery** app, add synonyms (*sofa* and *couch*) and boost the products that should come first.

## All settings

Every setting in the order of the theme editor, with its options and its default value.

**Section: Search results** (30 settings, in editor order)

| Setting | Options | Default |
| --- | --- | --- |
| **Show breadcrumbs** | Checkbox | On |
| **Show result type links** – All, Products, Articles and Pages under the search field. | Checkbox | On |
| **Results per page** | 8–48 (step 4) | 20 |
| **Results per row on desktop** | 2–5 (step 1) | 4 |
| **Results per row on mobile** | 1 · 2 | 2 |
| **Let customers change results per row** | Checkbox | On |
| **Animate the change** – Products glide to their new place | Checkbox | On |
| **Default view** – List shows a row per product with a short description and stock status. Customers can switch views. | Grid · List | Grid |
| **Pagination** | Page numbers · Load more button · Infinite scroll | Load more button |
| **Enable filtering** | Checkbox | On |
| **Filter layout on desktop** | Bar above products · Sidebar · Drawer | Bar above products |
| **Enable sorting** | Checkbox | On |
| **Color scheme** | Color scheme | Scheme 1 |

*Before a search and when nothing is found*

| Setting | Options | Default |
| --- | --- | --- |
| **Show popular searches, collections and products** – Popular searches come from Theme settings > Search. | Checkbox | On |
| **Collections** | Collections | – |
| **Products from** – Leave empty to use the featured collection from Theme settings > Search, or all products. | Collection | – |
| **Products to show** | 4–12 (step 4) | 8 |

*Grid spacing*

| Setting | Options | Default |
| --- | --- | --- |
| **Use custom spacing** – Otherwise the spacing from Theme settings > Layout is used. | Checkbox | Off |
| **Space between columns** | 0–64px (step 2) | 20px |
| **Space between rows** | 0–96px (step 2) | 20px |
| **Space between columns on mobile** | 0–32px (step 1) | 8px |
| **Space between rows on mobile** | 0–64px (step 1) | 21px |

*Section spacing*

| Setting | Options | Default |
| --- | --- | --- |
| **Top padding** | 0–160px (step 4) | 48px |
| **Bottom padding** | 0–160px (step 4) | 80px |
| **Top padding on mobile** | 0–120px (step 4) | 32px |
| **Bottom padding on mobile** | 0–120px (step 4) | 56px |

*Advanced*

| Setting | Options | Default |
| --- | --- | --- |
| **Hide on mobile** | Checkbox | Off |
| **Hide on desktop** – Mobile means below the width where the header switches to the mobile menu (Header > Switch to the mobile menu below). | Checkbox | Off |
| **Animate on scroll** | Checkbox | On |
| **Anchor ID** – Link to this section with #anchor-id. | Text | – |

## Related

- [Collections and search](https://themelab.page/tally/docs/collections-and-search.md): The product grid with filters, sorting, a list view and a promo tile; the collections list; and the search results page with suggestions before a search.
- [Product grid](https://themelab.page/tally/docs/sections/product-grid.md): The collection page – banner, subcollection chips, filters, sorting, a 2/3/4 or list view, pagination and a promo tile.
- [Theme settings](https://themelab.page/tally/docs/theme-settings.md): Settings that apply to the whole store – logo, typography, layout, shapes, product cards, animations, search, social links and a few extras.
