Product image with slight zoom
-
Hello everyone
I am setting up an online store where the products had the lightbox and zoom features disabled by a code snippet until a while back. Also, I removed the magnifying glass icon.One thing I do not understand is why on earth the lightbox is active again?
Is possible to click the product image and it opens in a black blackground. I do not want that. I don’t want a product zoom. I don’t want clickable images. I don’t want the zoom icon on the image (this is still ok, there is no zoom icon).
Last time I managed to get this to work without clicking and zooming, the image would slide a bit to the sides when the mouse was hovering over it, but this was just with the current code snippets I am still using now. I don’t know what changed. Cache issues perhaps? I was trying this on Chrome’s anonymous mode and the result is the same.
Here are the actual codes I tried and worked (but now they don’t):
remove_theme_support( 'wc-product-gallery-zoom' ); remove_theme_support( 'wc-product-gallery-lightbox' );
and
add_action( 'after_setup_theme', 'remove_wc_gallery_lightbox', 100 ); function remove_wc_gallery_lightbox() { remove_theme_support( 'wc-product-gallery-lightbox' ); }
I appreciate any help
The page I need help with: [log in to see the link]
- The topic ‘Product image with slight zoom’ is closed to new replies.