Designing Your Search Results Page (OS 3.0 Themes)
The search results page displays products, blog articles, collections, and custom pages that match customers' search keywords in a card-based format, helping customers quickly find what they're looking for. With OS 3.0 Themes, you can customize the content and appearance of each type of result card in the theme editor to maintain a consistent look across your store.
This guide explains how to access the search results page in the theme editor, customize different types of result cards, and troubleshoot issues where all collection cards display the same collection.
|
Before You Begin: Using the Right Editor This guide covers search results page settings in the online store theme editor, accessible via Online Store > Design. To design the search results page for your SHOPLINE mobile app, refer to "Designing the Search Results Page." Shopper App uses a separate page editor with its own set of components. |
Accessing the Search Results Page in the Theme Editor
To access the search results page in the theme editor, follow these steps:
- In your SHOPLINE admin panel, go to Online Store > Design, then click Design on the OS 3.0 theme you want to edit.
-
At the top of the theme editor, click the page selector and select Other pages > Search page from the list of page types.
The left sidebar of the theme editor is divided into three sections:
- Header and Footer: These sections apply across your entire store. Changes made here are reflected on all pages.
- Template: This section is specific to the search results page and contains the Search results component. You can also click Add component to add other components to the search results page.
Understanding Search Result Cards
The Search results component contains the search box at the top of the page and the Result list module. The Result list module uses the following four types of cards to display content based on the type of search result.
| Note: Available blocks may vary by theme. Refer to the options available in your theme editor. |
| Card | Content Displayed | Included Modules |
| Product cards | Products matching the search keywords |
|
| Blog cards | Blog articles matching the search keywords |
|
| Collection cards | Product collections matching the search keywords |
|
| Custom page card | Custom pages matching the search keywords | No submodules |
| Important: Each card type has a single set of settings in the theme editor. Changes made to a card or any of its modules apply to all cards of the same type in the search results. For example, if you change the typography of Product price under Product cards, all product cards will display their prices using the same typography. |
Understanding Layout Settings for Result Cards and Modules
Most cards and modules include a Layout section in their settings panel, where you can adjust the arrangement and dimensions of their elements. Depending on the module, the following settings may be available:
- Arrangement: Configure how elements within the module are arranged, including Direction (vertical or horizontal), Auto wrap (On or Off), Alignment, Justify, and Spacing (row and column spacing in pixels).
- Margin: Use Padding to adjust the space between the module's content and its boundaries.
- Size: Set the module's Width and Height, using options such as Responsive or Fill container.
Customizing Product Cards on the Search Results Page
Product cards display products that match customers' search keywords. To customize product cards, follow these steps:
- In the left sidebar, expand Search results > Result list.
-
Click Product cards and configure the following options in the settings panel:
- Products: By default, the product is automatically inherited from the parent module through a dynamic source, so you generally don't need to select a product manually. To change the product source, click Change and select Change dynamic source or Select static product.
- Preselect default variant: Choose whether to preselect the product's default variant. This setting does not apply to combined listings.
- Layout: Adjust the product card layout as needed.
Note: All OS 3.0 Themes except Bottle support changing the product's dynamic source or selecting a static product. We recommend retaining the default dynamic source. If you manually specify a product using Select static product, the product cards will always display the specified product instead of dynamically displaying products that match customers' search keywords. - Select the module or submodule you want to customize and adjust its settings in the settings panel:
-
Product image: Customize how product images are displayed.
- Choose product: By default, the product is automatically inherited from the parent module, so you generally don't need to select a product manually.
- Product image ratio: Set the aspect ratio of the product image, such as 2:3.
- Image fill method: Choose how the product image fills its display area.
- Picture shape: Set the shape of the displayed product image.
- Display next product image on hover and Display the next product image when hovering on a mobile device: Choose whether to display the next product image on hover for desktop and mobile devices, respectively.
- Layout: Adjust the product image layout as needed.
Expand Product image to access the two Image overlay modules. You can configure how each overlay appears and customize the display of its corresponding submodule, Sale badge or Quick add-to-cart icon.
-
Product info area: Customize the layout of the area containing the product title, price, description, and shopping buttons. Expand this module to configure the following submodules:
- Product title: Customize the appearance of the product name.
-
Product price:
- Choose product: By default, the product is automatically inherited from the parent module, so you generally don't need to select a product manually.
- Price and Compare-at price: Set the typography for the selling price and compare-at price, respectively.
- Bold price: Enable this option to display the selling price in bold.
- Show compare-at price: Enable this option to display the compare-at price with a strikethrough for products that have a compare-at price.
-
Product card description:
- Content: Specify the description content to display.
- Typography and Text alignment: Set the text style and alignment of the description.
- Product description collapse: Enable this option to collapse longer product descriptions. You can select how the description is displayed under Description display, such as Truncate.
-
Shopping button:
- Choose product: As with Product price, the product is automatically inherited from the product card by default, so you generally don't need to select a product manually.
- Typography and Button style: Set the button's text style and button type, such as Main button.
-
- Click Save in the upper-right corner to apply your changes.
Customizing Blog Cards on the Search Results Page
Blog cards display blog articles that match customers' search keywords. To customize blog cards, follow these steps:
- In the left sidebar, expand Search results > Result list.
- Click Blog cards and configure the arrangement, margin, and size of the entire card.
- Select the module or submodule you want to customize and adjust its settings in the Settings panel:
- Cover image: Set the Image ratio (such as 4:3) and Border radius (in pixels).
-
Blog info: This module contains the article title, author and date information, and summary. Expand it to configure the following submodules:
-
Title:
- Text label: Select the heading tag, such as H2. This setting is for SEO purposes only and does not affect the visual appearance of the page.
- Typography and Text alignment: Set the text style and alignment of the title.
- Display options: Set how many lines of the title are displayed, such as Show up to 3 rows.
- Author/date label: Enable or disable Display author and Display date, and select the desired Typography.
-
Summary:
- Enable rich text summary: Enable this option to render the summary with its full HTML formatting on the storefront while preserving its SEO-related content. Note that this may affect card alignment.
- Display options: Choose how the summary is displayed, such as Show all.
-
Title:
- Click Save in the upper-right corner to apply your changes.
| Note: To learn more about how rich text summaries appear on blog pages, refer to "Designing Your Blog Pages in the Theme Editor (OS 3.0 Themes)." |
Customizing Collection Cards on the Search Results Page
Collection cards display product collections that match customers' search keywords. To customize collection cards, follow these steps:
- In the left sidebar, expand Search results > Result list.
- Click Collection cards and configure the following options under Settings:
- Inherit color scheme: Enable this option to inherit the color scheme of the parent component.
-
Collection list: Specify which product collections to display. We recommend leaving this field empty rather than manually selecting a collection using Select Product collection.
Important: All collection cards share the same set of settings. If you select a specific collection here, all collection cards in the search results will display that collection instead of their respective matching collections. Leave Collection list empty to ensure that each card displays the collection corresponding to its search result.
- Select the submodule you want to customize and adjust its settings in the settings panel:
- Collection image: Configure the Collection image ratio (such as 1:1), Image fill method (such as Fill), Collection image shape (such as Square), and Image display area (such as Center). You can also click Collection name under this module to display the collection name within the collection image.
- Collection name: Configure Collection titles, Text label (for SEO purposes only, without affecting the visual appearance of the page), Typography, and Text alignment.
- Click Save in the upper-right corner to apply your changes.
Understanding Custom Page Cards on the Search Results Page
Custom page cards display custom pages that match customers' search keywords. To access this card type, expand Search results > Result list in the left sidebar, then click Custom page card.
Unlike other result card types, custom page cards may not have editable settings in the theme editor, depending on your theme.
Custom page cards display the cover images configured for their corresponding pages. To learn how to configure cover images, refer to "Configuring Custom Page Covers in OS 3.0 Themes."
Search Results Page FAQs
Q1: Why do all collection cards on the search results page display the same collection?
This usually occurs when a specific collection has been manually selected in the Collection cards settings on the search results page.
All collection cards in the search results share the same set of settings. When you manually select a collection, that selection applies to every collection card, causing all cards to display the same collection image and name. This is expected behavior in the theme editor, not a system error.
To restore the correct display, follow these steps:
- In the page selector at the top of the theme editor, select Search page.
- In the left sidebar, expand Search results > Result list, then click Collection cards.
-
Under Settings > Collection list, click Delete to remove the selected collection.
- Click Save in the upper-right corner, then perform another search on your storefront to verify that each collection card displays its corresponding collection.