Help

How to add a before and after slider to your store

Let shoppers drag a slider between a before photo and an after photo, with your own labels and a caption, on product pages and anywhere else in your store.

"Does it actually work?" is the question behind every skincare, cleaning or restoration product. A before and after slider lets shoppers see for themselves, one drag at a time.

TL;DR

Go to Store Widgets, click Create Widget and pick Before and after. In the Items tab, add a before photo and an after photo for each comparison, and a caption if you like. Click Publish, then Add to store. In the theme editor, place the Before and after widget block and click Save.

Step 1 · Create the widget

In Nudgesmart, open Store Widgets and click Create Widget. In the Widget library, find Before and after under Videos & reviews and click Use This Widget.

Step 2 · Add your photos

Open the Items tab. For each comparison, click Add the before photo and Add the after photo. Add a Caption if you like (up to 120 characters), such as "After 4 weeks, used twice a day".

  • Same angle, same size, same light. The slider only convinces when the only thing that changed is the result. Shoot both photos from the same spot.
  • JPG, PNG or WebP, up to 5 MB each.
  • Labels. The slider says "Before" and "After" unless you type your own in Before label and After label (up to 30 characters), such as "Day 1" and "Day 30".

Click Add comparison for another pair. Only comparisons with both photos go live.

Step 3 · Pick a look

Open the Design tab. Choose a Style, the shape of the photos (Square (1:1), Portrait (4:5) or Wide (16:9)), and Where the slider starts (%): anywhere from 10 to 90, 50 by default.

Starting the slider a little to one side, such as 30, shows more of the "before" so shoppers want to drag it.

Step 4 · Publish and add it to your store

In the Visibility card, click Publish, then Add to store. Click the button for the page you want, such as Add to Product pages, to open the theme editor with the block added. Drag it into place and click Save.

To add it by hand, go to Online Store → Themes → Customize, open the page, click Add block, then Apps, and pick Before and after widget.

The slider works on product pages, your home page, collection pages and other pages.

What shoppers can do

Shoppers drag the slider to reveal more of either photo. It also works with a keyboard (the arrow keys, Home and End), and screen readers announce it as a before and after comparison.

Keep it honest

  • Use real customer results, with permission. Ask before you use anyone's photo.
  • No editing that changes the result. Cropping and straightening are fine. Retouching the "after" isn't.
  • Say what's typical. If results vary, a caption like "Results vary; shown after 6 weeks" keeps the promise fair. Health and beauty claims can also be regulated where you sell, so check the rules for your products.

Common pitfalls

  • Publish says "Add a before and an after photo to at least one comparison." Every comparison needs both photos. Add the missing one.
  • The photos jump when I drag. The two photos are different shapes or framings. Crop them to the same size and angle.
  • I see "Sample" on a comparison. That comparison still has placeholder images. Replace them with your own.