Appearance
Recently viewed products ​
This guide describes how to set up the Recently viewed products section.
Use this section to display product tiles for recently viewed products on a page.

The previous image shows the home page of an example store. In the upper left, part of the Theme editor's Recently viewed products section menu is displayed. The menu's Maximum products to show option is set to 3. This option specifies the maximum number of products to display in the section. For example, in the previous image, the section displays three product tiles.
For general guidance with modifying sections, refer to Sections overview and Shopify help: Sections and blocks.
Configure the Recently viewed products section ​
To configure your Recently viewed products section:
In the Theme editor, at the top of the page, use the theme templates dropdown menu to select a page that contains a Recently viewed products section.
Note
The section can be added to any page except Gift card, and Checkout and customer pages. To add the section to the current page, select Add section > Recently viewed products. Refer to Shopify help: Add a section.
From the side menu, select Recently viewed products.
Select a setting described in the following table.
| Setting name | Description |
|---|---|
| Display on card | Use the Display on card option to show or hide a card behind the section. Refer to Shopify help: Cards. |
| Enable quick buy | Use the Enable quick buy option to show or hide an "Add to cart" button with product tiles in the section. Refer to Show quick buy on product tiles. |
| Products per row on mobile | Use the Products per row on mobile option to select 1 or 2 to specify the number of products shown in each row in the section on mobile display devices. |
| Maximum products to show | Use the Maximum products to show option to select 3, 4, or 6 to specify the maximum number of products to display in the section. |
| Product grid > Shape | Use the Shape options to select a shape. For example, select Same as theme settings, Default, Ellipse, Rounded nonagon, or Pixelated. Use this option to specify a shape for the section's product tile images. Selecting some shapes will crop the images. Refer to Style images and videos with shapes. |
| Product grid > Image aspect ratio | Use the Image aspect ratio options to select Same as theme settings, Natural, Landscape, Square, or Portrait. Use this option to specify the width-to-height ratio for the section's product tile images. This setting applies when the Shape option is set to a Fit to image shape, such as Default, Ellipse, Pill, or Archway. |
| Header > Title | In the Title field, enter text to display as the section's heading. Format the text and add links using the inline editor. |
| Header > Subheading | In the Subheading field, enter text to display as the section's subheading. Format the text and add links using the inline editor. To use this option, enter text in the Title field. |
| Color > Color scheme | Use the Color scheme picker to select a color scheme for the section. Refer to Colors. |
| Color > Use gradient for background | Use the Use gradient for background option to turn on or off using a gradient as the section's background. |
| 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 CSS field, 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. |
| Remove section | Select Remove section to delete the section from the current page. |
Note
To connect a metafield to a setting that supports metafields, select the Connect dynamic source icon displayed beside the setting in the Theme editor.
To learn how to connect a metafield to a supported setting, refer to Shopify help: Connecting metafields to your theme by using the Theme editor.
Configure a block within a Recently viewed products section ​
To configure a block within your Recently viewed products section:
In the Theme editor, at the top of the page, use the theme templates dropdown to select a page that contains a Recently viewed products section.
From the side menu, expand the Recently viewed products section menu.
To configure an existing block, select the block from the side menu.
To add a new block, select Add block, choose a block to add, and then select the block you added.
Note
Inside the section, you can add, remove, show, hide, and move blocks. Refer to Configure blocks inside a section and Shopify help: Sections and blocks.
Apply a block setting described in the following table.
| Block name | Block description | Block setting(s) |
|---|---|---|
| Background pattern | Displays a stylistic pattern as a background inside the section. | Refer to Background pattern. |
| Background shape | Displays a stylistic shape as a background inside the section. | Refer to Background shape. |
| Sticker | Overlays the section with a stylized sticker. | Refer to Stickers. |
| Shape divider | Displays a stylized separator between the current section and the next/previous section. | Refer to Shape divider. |