This topic has 11 replies, 2 voices, and was last updated 4 years, 9 months ago ago by Rose Tyler
Hi everybody,
does anybody know how to remove the lightbox on a single product page?
I tried a few php snippets I found on google but it does not work…
Hello,
Thanks for the question.
Try to add the next code in Theme Options > Theme custom CSS:
.single-product .woocommerce-product-gallery__image {
pointer-events: none;
}
If this doesn’t help, provide us with URL of one of your products.
Regards
Hello, thanks for the quick reply. I
tried it, but I only want to hide the popup of a large picture in a light box.
The zoom within the frame was okay and should stay….
Do you know how to do it?
Hello,
Do you use Single product page builder? Could you, please, provide URL?
Regards
Please see message in private area
Try to change the previous code to:
.single-product .pswp {
display: none;
}
Or you can activate the Single product page builder in Theme Options > WooCommerce (Shop), then you will be able to build the desired layout from scratch. The gallery element has option to disable Lightbox there.
Regards
Please see personal message
Hello,
Have you added the mentioned CSS code?
.single-product .pswp {
display: none;
}
Regards
Please see private message
Ok, it is working now for some reason! Thank you!!!!
You’re welcome!
Regards
You must be logged in to reply to this topic.Log in/Sign up