For the complete documentation index, see llms.txt. This page is also available as Markdown.

Product card

Controls how products look everywhere they appear as a card.

Where to find it: In the theme editor (Customize), go to Theme settings > Product card.

Product cards are often the first thing a customer interacts with on your store. The layout, image style, and available actions on each card directly affect whether someone clicks through to a product page, so these settings are worth spending time on.

You can control everything from image shape and hover behavior to which product details are shown and how sale badges are displayed.

1. Product media

Controls the shape, aspect ratio, and hover behavior of product images across every card in your store.

Ratio

Controls the aspect ratio applied to all product card images in the grid. Choosing a consistent ratio keeps the layout uniform even when your product photography varies in size.

Option
When to use

4:5

Portrait orientation. Works well for fashion, beauty, and lifestyle products where vertical framing suits the subject.

5:7

A taller portrait ratio than 4:5. Try this if you want a more cinematic feel across the grid.

1:1 (default)

Square crop. A natural fit for stores selling objects, homeware, or tech products where the subject sits centered in the frame.

5:4

Slightly landscape ratio that is wider than it is tall, providing extra horizontal space for wider products.

4:3

Landscape ratio that is wider than 5:4. Suits wide products such as furniture, equipment or bags photographed side on.

Ratio crops your images to fit. It doesn't stretch them. If your product photos are shot in a different ratio than the option you choose, the edges will be cropped. Check a few representative products after changing this setting.

You can set a separate image ratio value for mobile by enabling Custom on mobile option.

Corner radius

Controls how rounded the corners of your product card are.

  • Main corner matches the global corner radius set in your theme.

  • Small and Extra small inherit from the main corner value and scale it down proportionally for a subtler effect.

  • None removes rounding entirely for a sharp, full-bleed look.

  • Custom lets you set a precise value to match a specific design.

Custom media background color

Sets a background color that appears behind transparent product images (PNG files with no background). When left unset, the background follows the color scheme applied to that section.

Use this when your product images have transparent backgrounds and the default color scheme produces an inconsistent or distracting result.

Hover interaction

Controls what happens when a customer hovers over a product card on desktop, or double-taps on mobile.

Option
When to use

None

No hover interaction applied to the product card image.

Reveal second image

Shows the second product image on hover. Requires at least two images on the product.

Image carousel

Cycles through all available product images on hover.

Zoom in

Magnifies the image slightly when hovered.

Grayscale

Displays the image in black and white, revealing full color on hover.

Transition effect

Controls how the image changes during a hover interaction.

Setting
Options
What it does

Transition effect

  • Fade

  • Slide

Controls how the secondary image animates into view. Available when Hover interaction is set to Reveal second image or Image carousel.

Direction from

  • Left

  • Right

  • Bottom

Sets the direction the new image enters from (defaults to Right). Only visible when Transition effect is Slide AND Hover interaction is Reveal second image.

2. Product information

Controls what product details appear on each card and how they're laid out. Getting this right reduces the work customers need to do to evaluate a product before clicking through.

Position and Style

Controls where the product information appears relative to the card image, and how the text area is presented.

Setting
Options
What it does

Position

  • Outside

  • Inside

  • Outside: Places product information below the image.

  • Inside: Overlays product information on top of the image.

Style

  • Classic

  • Boxed

  • Classic: Displays text directly without an enclosing container background.

  • Boxed: Places text inside a distinct background card for separation from the image.

Mobile behavior: When Position is set to Inside, the product information box may overlap the product image depending on the selected Style and Ratio.

  • Inside / Boxed: The information box overlaps the image by 32px from the product title for all ratios, except the landscape ratios 5:4 and 4:3, which use 16px.

  • Inside / Classic: No overlap is applied.

Alignment

Controls how text is aligned within the card.

Option
When to use

Left

Aligns text to the left side of the product card.

Center

Centers text horizontally within the product card.

Right

Aligns text to the right side of the product card.

Show card details

These toggles control which supplementary details appear on each product card.

Setting
Options
What it does

Show vendor

  • On

  • Off

Displays the vendor name on the product card.

Show category

  • On

  • Off

Displays the product category on the product card.

Show unit price

  • On

  • Off

Displays the product's configured unit price (for example, £1.20 per 100ml) when unit pricing is available for the product.

Show price range label

  • On

  • Off

Displays the "From" prefix when product variants have different prices.

Show product rating

  • On

  • Off

Displays the product's average review rating and review count. Requires an integrated product reviews app.

Custom on mobile

  • On

  • Off

Enables separate alignment, unit price, price range, rating, and typography settings specifically for mobile screens.

Title and price text style

Controls the typographic style applied to the product title and price on the card. All text styles are defined in your Typography settings.

Setting
Options
What it does

Title text style

  • Heading 6

  • Paragraph

  • Description

Sets the typography style applied to the product title.

Price text style

  • Paragraph

  • Description

  • Label

Sets the typography style applied to the product price.

3. Color swatches

Controls whether and how color variant swatches appear on product cards, so customers can see available options without clicking through to the product page.

Setting
Options
What it does

Show color swatches

  • On

  • Off

Displays color swatches or variant image thumbnails on the product card (default: On). Configure color option names and swatch values in Theme settings > Color swatches (swatch display style on product cards is controlled by Type below rather than in global Variant picker settings).

Type

  • Color swatch

  • Variant image

  • Color swatch displays standard color blocks or custom color images (default).

  • Variant image displays a miniature preview of the actual variant photo.

Available when Show color swatches is On. Variant image mode requires that all variants have an associated image. Learn more

Maximum color swatches to show

  • 1–6

Sets the maximum number of swatches visible before displaying remaining options under a +X count (default: 4). Available when Show color swatches is On.

4. Product badges

Displays overlay labels on product cards to highlight stock availability and discounts.

Setting
Options
What it does

Show sold out badge

  • On

  • Off

Displays a "Sold out" badge on the product card when inventory is zero.

Show sale badge

  • On

  • Off

Displays a sale badge on the product card when the product has a compare-at price higher than its current price.

Type

  • Text

  • Percent

  • Fixed

  • Text: Shows the word "Sale" without a discount amount.

  • Percent: Shows the discount as a percentage off (default, for example -20%).

  • Fixed: Shows the exact amount saved (for example -$20.00).

Available when Show sale badge is On.

Custom badges from product tags

Tag a product in Shopify Admin with badge: followed by the badge text (for example badge:Pre-order or badge:Staff pick) to display that text as a solid badge on product cards and on the product page.

  • The badge: prefix is not case-sensitive, and the badge label keeps its capitalization.

  • A product can have several badge: tags.

  • An empty badge: tag displays nothing.

  • No theme setting turns tag badges on or off.

  • In collection filters and the quick filter, badge: tags display without the badge: prefix.

5. Quick actions

Quick action settings in this theme include both Quick add and Quick view options.

  • When the button width is Fit:

  • When the button width is Fill:

These tools reduce friction by giving customers immediate functionality to purchase or preview items directly from the product card without leaving their current page.

Quick add

Adds an immediate cart shortcut directly to the product card. If a product has no variants, clicking this button instantly adds the item to the cart. If the product has options (like size or color), a simplified variant selector will appear to guide the user.

Setting
Options
What it does

Desktop quick add button

  • On

  • Off

Displays the quick add shortcut button on product cards on desktop screens.

Mobile quick add button

  • On

  • Off

Displays the quick add shortcut button on product cards on mobile devices.

Variant picker type

  • Button

  • Dropdown

Customize variant selection, which opens over the product card on desktop and from the bottom of the screen on mobile when the Quick add button is clicked.

  • Button lays pills out flat so choices like sizes or colors are immediately selectable (default).

  • Dropdown packages options into a traditional select menu.

Show color swatches

  • On

  • Off

Displays color swatches within the quick add option drawer instead of plain text names (default: On). Available when Variant picker type is Button.

Configure color option names and swatch values in Theme settings > Color swatches; quick add swatch display style is controlled by Type below rather than in global Variant picker settings.

Type

  • Color swatch

  • Variant image

Chooses whether to display standard color swatches (default) or individual variant thumbnail images inside the quick add drawer.

Available when Variant picker type is Button and Show color swatches is On.

Maximum variant number of button type

  • 0-50

Applies only to the button type. If a product's variant count exceeds this number, the picker automatically switches to a dropdown menu to prevent layout clutter (default: 20).

Set this to 0 to disable this behavior and always display buttons.

Quick view

Opens a modal pop-up containing key product details, and high-quality media directly over the current page.

Setting
Options
What it does

Desktop quick view button

  • On

  • Off

Displays the quick view preview modal button on product cards on desktop screens.

Mobile quick view button

  • On

  • Off

Displays the quick view preview modal button on product cards on mobile screens.

Customize the Quick view layout in the Overlay group. Check out our Quick view documentation for a deep dive into building these pop-up modals.

Quick actions appearance

Controls the layout and visual style of the quick action buttons (quick add and quick view) on the card.

Setting
Options
What it does

Quick add button type

  • Icon

  • Text

  • Mix

  • Icon: Displays the quick add button using a visual icon only (default).

  • Text: Displays the quick add button using a text label only.

  • Mix: Displays the quick add button using both an icon and a text label.

Available when Desktop quick add button is On.

Quick add button width

  • Fit

  • Fill

  • Fit: Sizes the quick add button to its label (default).

  • Fill: Stretches the quick add button across the card width.

Available when Desktop quick add button is On and Quick add button type is Text or Mix.

Quick view button type

  • Icon

  • Text

  • Mix

  • Icon: Displays the quick view button using a visual icon only (default).

  • Text: Displays the quick view button using a text label only.

  • Mix: Displays the quick view button using both an icon and a text label.

Available when Desktop quick view button is On.

Quick view button width

  • Fit

  • Fill

  • Fit: Sizes the quick view button to its label (default).

  • Fill: Stretches the quick view button across the card width.

Available when Desktop quick view button is On and Quick view button type is Text or Mix.

Direction

  • Vertical

  • Horizontal

Controls whether buttons stack vertically (default) or sit side-by-side horizontally. Visible when both Desktop quick add button and Desktop quick view button are enabled.

Alignment

  • Left

  • Center

  • Right

Changes the physical placement of the buttons on the card. When both desktop quick action buttons are enabled and Direction is Vertical, options are Left (default) or Right. When both are enabled and Direction is Horizontal, or when only one desktop quick action button is enabled, options are Left (default), Center, or Right. Visible when at least one of Desktop quick add button or Desktop quick view button is On.

Transition effect

  • Fade

  • Slide

Controls the animation effect (Fade default, or Slide) when action buttons appear on hover. Visible when at least one of Desktop quick add button or Desktop quick view button is On.

Inherit color scheme

  • On

  • Off

Uses the active product card color scheme for quick action buttons when On. When Off, allows selecting an independent color scheme. Hidden when both desktop and mobile Quick add and Quick view buttons are turned off.

Color scheme

Color scheme selector

Selects the color scheme used for quick action buttons. Available when Inherit color scheme is Off. Hidden when both desktop and mobile Quick add and Quick view buttons are turned off.

  • Desktop layout: The styling options above (Quick add button type, Quick add button width, Quick view button type, Quick view button width, Direction, Alignment, and Transition effect) apply to desktop only. On mobile devices, quick action buttons automatically use an optimized, fixed layout.

  • Inheritance model: In individual sections and blocks containing product cards (such as Collection page, Featured collection, Shop the Look, and Product list), turning Inherit color scheme On causes quick actions to inherit from these global Quick actions settings rather than the local section color scheme.

Last updated