Appearance
Search
This guide describes setting up the Search section.
Use the section to set how search results are displayed on your store's Search page.
The previous image shows a Search section on a store's Search page. In the bottom left, part of Theme editor's section menu is displayed. To hide the product filtering and sorting options inside the section, the menu's Enable filtering and Enable sorting checkbox options are set to off
.
For general guidance with modifying sections, refer to Sections overview.
Set up a Search section
To set up a Search section:
Go to Customize theme.
In Theme editor, at the top of the page, use the dropdown to select Others > Search.
Note
The section is available only on Search pages.
From the side menu, select Search.
Select a setting described in the following table.
Setting name | Description |
---|---|
Filtering and Sorting > Enable filtering | Select the checkbox Enable filtering to show/hide the product filtering options inside the section. If enabled, visitors can select a range of search results by using filtering criteria. Refer to Shopify help: Searching for products and filtering your product list, and Shopify help: Add storefront filtering. |
Filtering and Sorting > Customize filters (link) | Follow the Customize filters link to open the Navigation menu editor in Shopify admin. |
Filtering and Sorting > Expand filters by default | Select the checkbox Expand filters by default to show/hide the product filtering options with search results, by default, inside the section. With this option set to off , to access the product filtering options, visitors must select the expand menu icon inside the section. |
Filtering and Sorting > Show filter counts | Select the checkbox Show filter counts to show/hide a count of the number of products in each filter category, among the search results, inside the section. A count is displayed beside the name of each filter. For example, for a collection containing two products that are in stock, In stock (2) is displayed in the Availability filter area. |
Filtering and Sorting > Enable color swatch filters | For products in the search results that use color variants, select the checkbox Enable color swatch filters to show/hide the option to filter products by color, inside the section. Refer to Shopify help: Variants and Shopify help: Searching for products and filtering your product list. |
Filtering and Sorting > Learn how to set up swatches (link) | Follow the link Learn how to set up swatches to open the Baseline: Color swatches guide. |
Filtering and Sorting > Enable sorting | Select the checkbox Enable sorting to show/hide the product sorting options, with search results, inside the section. If enabled, visitors can arrange the products in the search results by using sorting criteria. |
Theme settings | If available, select Theme settings to access additional settings for the section. Refer to Section theme settings menu. |
Custom CSS | Select Custom CSS. In the box, enter custom CSS styles to apply only to the current section. Refer to Shopify help: Add custom CSS. To apply custom styles to your entire online store, refer to Theme settings > Custom CSS. |