Debut theme: Add a lightbox zoom to product page images (mobile & desktop)

The Debut theme ships with a zoom on-hover feature out of the box, that is available exclusively for desktop. On mobile, depending of one’s device, there is still the possibility to “pinch-to-zoom” and, subsequently, have a better view of the product, but it’s rather a limited poor alternative especially when in comparison to popular e-commerce websites.

Today I’ll be teaching you how to quickly install a “lightbox zoom” feature for all of your Debut theme product page images, you just need to click (or tap) on the image to activate it.

It works out of the box on any Debut theme (including Debut themes using EZFY’s Debut Swipe Slider) and just takes a couple of minutes to install.

Downloading the code files

You can download the code files clicking here. (live preview)

Complete details about it can be found here.

Making a backup of your theme

Before diving into the tutorial make sure you download the theme, so in case you face any issues you can easily revert back.

Step 1: opening the code editor

  1. In your Shopify admin, go to Online Store > Themes Actions Edit Code.
  2. Inside the .zip you downloaded you’ll find two files:
    1. ezfy-zoom.txt
    2. settings_schema.txt

Step 2: Creating the lightbox zoom file

  1. Open the ezfy-zoom.txt file and copy all the code in there.
  2. Now go back to your Shopify code editor and below Snippets click on “Add a new snippet“. Name it exactly: ezfy-zoom

  3. Paste the code that you copied and click on save.

Step 3: Adding the code to the product pages

  1. Find the file named theme.liquid.
  2. Inside this file, press CTRL + F (or CMD + F on Mac) and search for:

  3. Paste the following code before the </body> tag you found and save:

    {% include 'ezfy-zoom' %}

4th and final step: updating the settings_schema.txt file

  1. Open the settings_schema.txt file and copy all the code in there.
  2. In your Shopify code editor find the settings_schema.json file in your theme.
  3. Scroll all the way down.
  4. Paste the code before the last line, after the } sign, as indicated the image below.

    So, for example, in this case, the code should be pasted on the line 1638 (the quantity of lines may vary depending of your theme, so don’t worry if it shows a different number on yours).

    Paste the code to the right of the } character that the arrow is pointing to.

  5. Save and you’re ready to go!

Troubleshooting common issues

Question: It shows me an error after I edit the settings_schema.json file. What do I do?

Answer: You very likely pasted the code at the bottom of the file. Please make sure you paste the code at the penultimate (second last) line as indicated in the step 4.

Your file must end with this character: ]

If you’re still facing any issues please reach out to us via and we’ll be more than happy to help you out!

Customizing the lightbox zoom

  1. In your Shopify admin, navigate to Online Store > Themes >Customize.
    Accessing the customize page on Shopify admin
  2. Scroll all the way down and navigate to Theme settings > EZFY Product Image Zoom
  3. Inside the EZFY Product Image Zoom menu you’ll find all available options for the Lightbox Zoom.


Background with geometric patterns.Background with geometric patterns.Background with geometric patterns.Background with geometric patterns.Background with geometric patterns.Background with geometric patterns.

In need of a Shopify developer?

Feel free to reach out, we'll work together to find a custom solution that attend your needs.

Request a free quote

Contact Us

Contact us to learn more about how we can help grow your business. No strings attached.

Send us an e-mail and we'll get back to you within 24 hours! Before you click on "send message" please make sure to do the ReCaptcha so your e-mail can be sent safely. 🙂