问题
I would like to disable the lightbox effect for my product's gallery. And I would like to open each thumbnail photo in the main image container instead. (#wsite-com-product-images-main-image)
Is there an easy way to accomplish this? Here is the link to my page: http://poloniafoods.weebly.com/store/p9/Meat_Pierogies_%28400g%29.html
Thanks in advance, Justin.
回答1:
It's coded in the design of the Theme. EDIT The default behavior would be that the thumbnail image that is clicked, would replace the default image.
So, go to:
- Theme Tab
- Edit HTML/CSS
- Under Partials, go to:
- Commerce
- then product
- images.tpl
- Look for~> w-fancybox (should be right after cloud-zoom-gallery)
- Delete w-fancybox, save your changes and publish your site.
**There might be some other changes that you need to make. Your best bet would be to make a back up zip copy, if you are using a custom theme. Then replace the code in your images.tpl with one from a different theme. THEN there might some JavaScript change that you would need to alter as well. ~That's about all I got. Can't do it all for you, without charging you something for my time ;)
(see Screenshot)
来源:https://stackoverflow.com/questions/39134814/how-to-disable-lightbox-for-my-gallery-and-open-each-thumbnail-photo-in-the-main