Skip to content

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.

A Recently viewed products section on a store's home page in the Theme editor.

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:

  1. 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.

  2. From the side menu, select Recently viewed products.

  3. Select a setting described in the following table.

Setting nameDescription
Display on cardUse the Display on card option to show or hide a card behind the section. Refer to Shopify help: Cards.
Enable quick buyUse 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 mobileUse 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 showUse 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 > ShapeUse 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 ratioUse 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 > TitleIn the Title field, enter text to display as the section's heading. Format the text and add links using the inline editor.
Header > SubheadingIn 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 schemeUse the Color scheme picker to select a color scheme for the section. Refer to Colors.
Color > Use gradient for backgroundUse the Use gradient for background option to turn on or off using a gradient as the section's background.
Theme settingsIf available, select Theme settings to access additional settings for the section. Refer to Section theme settings menu.
Custom CSSSelect 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 sectionSelect 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:

  1. 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.

  2. From the side menu, expand the Recently viewed products section menu.

  3. 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.

  4. Apply a block setting described in the following table.

Block nameBlock descriptionBlock setting(s)
Background patternDisplays a stylistic pattern as a background inside the section.Refer to Background pattern.
Background shapeDisplays a stylistic shape as a background inside the section.Refer to Background shape.
StickerOverlays the section with a stylized sticker.Refer to Stickers.
Shape dividerDisplays a stylized separator between the current section and the next/previous section.Refer to Shape divider.