Docs

Image comparison section

The Image comparison section in Seventh shows a before and after image with a slider that customers drag to compare them.

Applies to: Seventh 4.0.0 and later. Added in: Seventh 1.0.0. Last checked: 2026-10-12 against Seventh 4.0.0.

The Image comparison section shows two images on top of each other with a handle that customers drag to compare them, for example a before and after photo. It is a preset of the Custom grid section that holds one Image comparison card.

Where to find it: select Add section in the theme editor, then choose Image comparison or Image comparison: split in the Media & galleries category.

Storefront Image comparison section on a dark background with two comparison cards, one split horizontally and one with a vertical slider handle, both labelled Before and After.

What the section shows

Both presets add a section header and one Image comparison card, which fills the full row (Cards size XLarge). The card always holds exactly two Before/After Image blocks, one per side, labeled Before and After.

  • Image comparison: the section header (a Caption block and a Heading block) sits above the comparison.
  • Image comparison: split: the section header (a Caption block, a Heading block and a Text block) sits on the left of the comparison (Position Left).

Both presets start with a Standard (3:2) Desktop aspect ratio. The section layout, Section design and section header settings are those of the Custom grid section. The Image comparison card exists only in the Custom grid section, so its settings are on this page.

Comparison layout

These settings are in the Image comparison card, not in the section:

  • Layout sets the direction: Horizontal (drag left and right) or Vertical (drag up and down).
  • Invert layout on mobile devices switches the direction on mobile, for example horizontal on desktop and vertical on mobile.
  • Desktop aspect ratio and Mobile aspect ratio set the shape. Both images are cropped to it.

Tip: Choose images with similar framing for the clearest comparison.

Set up a before and after comparison

Add the section

Select Add section, then choose Image comparison.

Choose the two images

Select the first Before/After Image block and choose an Image. Then select the second block and choose the other image.

Set the labels

Change Label in each Before/After Image block, or leave it empty to hide the label.

Set the shape

Select the Image comparison card and set Desktop aspect ratio and Mobile aspect ratio to match your photos.

Use two photos with the same aspect ratio. Photos taken from the same position line up exactly when customers drag the handle.

Can I compare more than two images?

No. Seventh does not support more than two images in one Image comparison card. To compare several pairs, add more Image comparison cards to the same Custom grid section with Add block, and set Cards size to show them side by side.

Can I use other photos on mobile?

Yes. Each Before/After Image block has a Mobile image, which replaces its image on screens narrower than 768 px. It appears once Image is set.

All Image comparison settings

Every setting on this page, one list per section or block, with its type and default.

On this page