Updated on August 07, 2020
- Products with more than 4 images in the product gallery will be shown in a carousel. All the images i.e., featured image and the gallery images will be grouped in a lightbox meaning, they can be navigated using the left/right keys/arrows.
- Products will 4 or less images in the product gallery will appear static in columns i.e., no carousel. All the images will be grouped in a lightbox.
- Products with no product gallery will continue to show the featured image. Clicking on the magnifying glass icon will open the image in a lightbox.
- Sale badges will continue to appear where applicable.
Note: For variable products, selecting a variation will not replace the main product image with the selected variant. However, we can make some changes in the code to make this work. But with the main image appearing and behaving as before, the lightbox will be limited to the images appearing at the bottom thumbnail row. Steps on how to do this are given at the end of the tutorial.
Install and activate My Custom Functionality plugin.
Connect to your hosting account using a FTP client and navigate to site's
a) Upload glightbox.min.js to the plugin's
b) Create a file named say,
in the same location having the following:
This is a premium members-only content.
To view the rest of the content, please sign up for membership ($47/month or $499 one-time).
Already a member? Log in below or here.