Comparison Slider
How it works
Comparison Slider shows two images with a slider that customers drag to see the differences, for example a before-and-after comparison. You can add a heading, a description, and a button next to the images, and place the slider on any page.
Step 1: Open the feature
From your Shopify admin, open LV - Product Badges → Store Optimizations → Comparison Slider.
Step 2: Add the widget
This feature requires an app block on the page where you want it to appear. If the block is already added, go to step 4.
- Click Add widget to open the Shopify theme editor.
- Open the page template where you want to show the widget, add the Comparison Slider block, and move it to your preferred position. Then click Save in the theme editor.
- Return to the app and click Verify now.
- Turn on the toggle beside This setting is deactivated, then click Save at the top of the page.
For detailed instructions, see How to Enable App Embed and App Blocks in Lavar.
Step 3: Configure settings
Under Settings, choose Template 01 or Template 02 in Template name, then add your images and content.
- Images: Click each image placeholder to add the two images to compare. Images with a 4:3 aspect ratio display best.
- Image label: Enter a label for each image, such as Before and After.
- Heading / Description: Under Content, enter the text shown with the comparison. The description can be up to 120 characters. Leave a field blank to hide it.
- Button text / Button link: Enter a button label and the page it opens, if you want a button.
- Content go first: Select this to place the content before the comparison images. Clear it to show the images first.
Step 4: Customize appearance settings
Under Appearance, adjust the settings below. You can keep the default appearance if no changes are needed.
- Layout: Choose Vertical or Horizontal.
- Colors: Set the Background, Text, Button background, and Button text colors. Click a color swatch to choose a color, or enter a hex code. Adjust the percentage to change opacity.
To restore the original settings, click Reset to default at the bottom of the page.
In the Preview panel, drag the slider to check your images. If you change any settings, click Save at the top, then check the slider on your storefront.
Need help?
If the slider doesn't show on the page where you added the block, email us at [email protected] with the link to that page, and we'll check it for you.