Before / After Product Compare Slider

Overview

โ†‘ Back to top

Before / After Product Compare Slider is an extension for WooCommerce that allows shop owners to showcase before & after pictures of the product. These comparison Images are shown on the single product page in the traditional featured image area.


Installation

โ†‘ Back to top

Once youโ€™ve purchased Before / After Product Compare Slider, you can download the plugin from your confirmation email or WooCommerce account. To install it, follow these steps:

  1. Ensure that WooCommerce is installed & active
  2. Go to Plugins > Add New > Upload
  3. Select the ZIP file you just downloaded
  4. Click Install Now, and then Activate

Once youโ€™ve installed and activated the plugin, navigate to WooCommerce > Settings > Products > Before / After Slider to configure the display settings for sliders. Configuring individual slides or a per-product basis, please navigate to Products > All Products > Your Before/After Slider Product > Before / After Slider.

More information at Installing and Managing Plugins.


Setup and Configuration

โ†‘ Back to top

Comparison Slider โ€“ Storewide Settings

โ†‘ Back to top

To configure the slider display settings for all products, navigate to WooCommerce > Settings > Products > Before / After Slider:

  • Default offset: How much of the initial image is visible when the slider loads (default is 70%)
  • Orientation: The slider orientation can either be horizontal or vertical (default is horizontal)
  • Before label: The text to be used on the overlay of the โ€œbeforeโ€ image
  • Before label background: The background color to be used on the โ€œbeforeโ€ label
  • Before label text color:ย  The text color to be used on the โ€œbeforeโ€ label
  • After label: The text to be used on the overlay of the โ€œafterโ€ image
  • After label background: The background color to be used on the โ€œafterโ€ label
  • After label text color:ย  The text color to be used on the โ€œafterโ€ labelย 

Comparison Slider โ€“ Per Product Settings

โ†‘ Back to top

To configure before / after slider images on a per product basis, navigate to Products > All Products > Your Before/After Slider Product > Before / After Slider. A new image upload panel will appear on the right-hand side of the product edit page (in the admin area).

  • Before Image: The โ€œbeforeโ€ image is usually the original image of the product/service before purchase or application.
  • After Image: The โ€œafterโ€ image is usually the new image of the product/service after your product was purchased or applied.

Note: For best results, we recommend both before and after images have the same dimensions.


Before / After Slider Usage

โ†‘ Back to top

On the single product page (on the front-end), customers will see a before / after comparison slider when the following conditions are met:

Images

  • A โ€œBeforeโ€ image has been uploaded on the image upload panel outlined under โ€œPer Product Settingsโ€
  • An โ€œAfterโ€ image has been uploaded.

Labels

  • The before / after labels will only appear when hovering over the comparison slider. These labels will fade out as soon as the drag-action is started.

Frequently Asked Questions

โ†‘ Back to top

Can I hide the before / after labels on the front-end slider?

Yes – To hide the sliders, navigate to WooCommerce > Settings > Products > Before / After Slider and remove the text from the Before label and After label settings area.

Will this work with my theme?

It should – Weโ€™ve tested the Before / After Product Compare Slider with a wide variety of themes. If your site is using template overrides in a child or parent theme, please ensure it contains the woocommerce_before_single_product_summary hook in woocommerce/templates/content-single-product.php.ย 

Alternatively, you could also purchase this extension and test it on your site. If the slider doesnโ€™t show up, reach out to us for additional support or request a refund.

Can I hide the image zoom button?

Yes – the image zoom (i.e. magnifier button) can be hidden using custom CSS. Add the following custom CSS in your WordPress settings under Appearance > Customize > Additional CSS:

.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
ย ย display: none;
}

Related Products

Offer add-ons like gift wrapping, special messages or other special options for your products.

Offer personalized product bundles, bulk discount packages, and assembledย products.