Adding click to enlarge popup light boxes to images within the pages or blog posts within your theme is very simple. Unfortunately it can not be automated but this quick guide will walk you through how to do that.
To begin the following code is intended for use with the following Shopify themes and can not be supported for others not on this list:
1. Upload your files first
In your Shopify admin go to: Settings > Files
This is an area where files used within pages, blog posts and other contents are stored and can be used across your store.
Upload each of your images here. Each will be given a URL which is the part that we will need.
2. Open or create the page
Click on Pages or Blog posts depending on the content you are creating and add a new Page or Blog post.
Within the page editor click on the < > ( View HTML ) icon to go into the code editor.
3. Adding the neccesary code
In a new tab open your Files page again locate the small and large images that you want to show.
Each will have been given a URL when uploaded.
Copy the URL's and add them in to the below.
<a href="paste-the-large-image-url-here" class="fancybox">
Repeat this step for any other images and click save.
You will now show small images on the page which when clicked will enlarge.
Note We can not offer individual theme modifications, however are happy to advise on the best Shopify resources and finding developers to work on your theme.
Want to customize your theme?
- Hey Carson small tweaks
- Expertly.help Tweaks & SEO solutions
- Task Husky ecommerce tweaks
- Shopify experts
- Updating your theme
Have questions not covered in our docs?
- Ask a theme support question
Support Hours:9:30 - 17:30 EST
Monday - Friday