How to disable lightbox for my gallery and open each thumbnail photo in the main frame instead?

怎甘沉沦 提交于 2019-12-13 06:35:19

问题


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:

  1. Theme Tab
  2. Edit HTML/CSS
  3. Under Partials, go to:
  4. Commerce
  5. then product
  6. images.tpl
  7. Look for~> w-fancybox (should be right after cloud-zoom-gallery)
  8. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!