• Hello,
    On a custom theme, I want to use the WC lightbox on the product page but I don’t want the zoom effect inside the image.

    If I add theme support for wc-product-gallery-lightbox only, the magnifying glass icon to open the lightbox does not appear (I assume the lightbox is completely disabled), it shows only if I also add support for wc-product-gallery-zoom.

    Is this the intended behavior and the lightbox needs to have the inner zoom option enabled to work?

    The only solution I’ve found is to enable support for both and hide the zoomed image (zoomImg class) through CSS but I’d like to do it in a cleaner way if possible and I’m not sure if there is an issue with my theme (or a conflicting plugin) or if the lightbox doesn’t work without also enabling the zoom effect.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Thread Starter terzag

    (@terzag)

    Just tried and it has the same behavior. Which is weird, as its options offer to disable the lightbox, the zoom or both, so I assume it should be possible to disable the zoom and still have the lightbox.

    So, still not sure if it’s an issue with my theme (which has a number of hacks to display the product page in a specific way) or a bug in WC.

    EDIT: I’ve just tried things with a different store and it’s a mixed bag. The original issue comes from a different plugin I use in the original store (it disable links on images, that’s why the lightbox doesn’t open when clicking on the image itself) and either a bug in WC or a misunderstanding from me:
    – it is indeed possible to enable the lightbox without the zoom;
    – the magnifying glass icon only appears when the zoom feature is enabled.

    Now, that’s the second point that’s confusing me: is the magnifying glass icon supposed to show that the image can be clicked and should always appear when the lightbox is enabled (which is what I assumed); or is it displayed only to be able to open the lightbox when the zoom is active because the image can’t be clicked otherwise, and thus it’s normal that it isn’t displayed when there is no zoom?

    • This reply was modified 5 years, 3 months ago by terzag.
    • This reply was modified 5 years, 3 months ago by terzag.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Enable WC Lightbox without zoom?’ is closed to new replies.