How to easily show before and after photo slider in Shopify

Do you want to show the before and after photos on your Shopify store? A before and after photo can be useful to display side by side comparison of two identical images with minor differences. Perfect for anyone in the beauty or fitness business, photographers, designers, gardeners, builders and more.

DEMO

In this article, I will share how to easily show before and after photo in Shopify.

  • From your Shopify admin, go to Online Store > Themes.
  • Find the theme you want to edit, and then click Actions > Edit code.
  • In the Layout section, click theme.liquid to open the file in the online code editor.
  • Find </head> and paste the below code just above it.
  • Click Save.

It’s easy to get started, just wrap two images inside of a container with class name “twentytwenty-container” . The first image will be on the left and the second one will be on the right. Here’s an example container:

Happy coding!

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *