Cardinal docs/Templates
Search
The predictive search panel and the full results page, with filters and sorting.
Search is two things in Cardinal: a fast suggestion panel that opens from the header, and a full results page with filters, sorting and pagination. Customers who search convert at a much higher rate than those who browse, so both are worth setting up properly.
Predictive search
Clicking the header search icon opens a panel from the top of the screen. As the customer types, it suggests search terms and up to six each of matching products (with their prices), collections, pages and articles, plus a View all results link to the full page.
- Results update as you type, debounced so it does not fire on every keystroke.
- Arrow keys move through results, Enter opens one, Escape closes the panel. Focus stays inside the panel while it is open.
- The header icon is a real link to
/search, so with JavaScript disabled it navigates to the results page instead.
The panel has no settings. It appears in the theme editor as Search drawer, in the overlay group alongside the cart drawer.
The results page
The full page shows products as product cards — with swatches, unit prices and quick add, as on a collection — and articles and pages as result cards, with sorting and pagination.
Manage filters in the Shopify Search & Discovery app.
1 · 2
Portrait (4:5) · Square (1:1) · Natural
Filtering
With Enable filtering on, a Filters button appears next to the results count. It opens the same drawer as the collection page, with the same filters — availability, price, product type, vendor, options and anything else you set up in the Search & Discovery app.
- Filters apply without a page reload. The results, the count and the URL update together, and Back undoes the last change.
- Applying a filter limits the results to products — Shopify drops pages and articles from a filtered search.
- Active filters show as chips under the toolbar. Clear all removes every filter but keeps the search term and the sort order.
- A combination with no results keeps the toolbar and offers Clear all, so the customer is never stuck.
- Pagination keeps the filters.
Sorting
Enable sorting adds a sort menu with Shopify's search orders — relevance and price. Relevance is the default and is almost always the right one to leave first.
Making search work better
Shopify searches product titles, descriptions, vendors, types and tags. Most of what makes search good is in your product data, not the theme:
- Tag the words customers use, not the words you use. If you sell a crewneck and people search sweatshirt, tag it.
- Fill in vendor and product type. Both are searched, and both power filters.
- Use the Search & Discovery app to add synonyms and to boost specific products for specific terms. It is free.
- Read your search analytics under Analytics → Reports. Searches with no results are a list of products your customers think you sell.
Still stuck? Contact support and we will help.