Hello
Before, when we click on an image in a product in WooCommerce, the image open in a pop in.
Now it’s open in a new page.
https://www.virtualmagie.com/boutique/tours/notes-conferences-1997-gaetan-bloom/
Any ide how to correct that?
Regards
-
This topic was modified 8 years by
Thomas.
Hi,
That was removed as an option by Woocommerce, quite a while ago. These are some similar topics containing solutions to enable the lightbox feature of Woocommerce
– https://forum.tagdiv.com/topic/woocommerce-lightbox/
– https://forum.tagdiv.com/topic/woocommerce-images/
Thanks
Hello Simion
I follow the instructions and put this 3 lines in the functions.php
add_theme_support( ‘wc-product-gallery-zoom’ );
add_theme_support( ‘wc-product-gallery-lightbox’ );
add_theme_support( ‘wc-product-gallery-slider’ );
But don’t seem to works.
https://www.virtualmagie.com/boutique/livres-de-magie-papier/en-route-john-guastaferro-francais/
Please help.
Regards
In fact, it’s seem to work! đ
https://www.virtualmagie.com/boutique/tours/en-route-john-guastaferro/
Just for the zoom when you put your mouse on the image, on Chrome nothing happens and on Edge it shows the photo in little.
…
Strange but now the zoom effect work on Edge but not in Chrome.
Another thing on the same URL, the first photo on the page (portrait of John GUASTAFERRO) is clikable.
But it open the image.
How coulf I achieve to do the same things with a pop in like in the post pages?
Regards
-
This reply was modified 8 years by
Thomas. Reason: Change on Edge
For me the zoom works on Chrome as well – https://www.screencast.com/t/wQYuNfOh1
The magnify icon also works it opens the image in a modal, that works for you as well.
But that effect with the image following the mouse when hovering the icon is not happening for me. I don’t know how exactly you did that.
Till the 9 theme update, I put back the 3 lines in the functions.php
/* ----------------------------------------------------------------------------
* Woo Commerce
*/
add_theme_support( âwc-product-gallery-zoomâ );
add_theme_support( âwc-product-gallery-lightboxâ );
add_theme_support( âwc-product-gallery-sliderâ );
// breadcrumb
But now it is not working anymore! đ
What I have to do?
Regards
I tested again, for me it works
– https://www.screencast.com/t/Bjwxae1x0X
All I did was enter the same code as you did, in the them functions. Add it again, copy it from here
add_theme_support( 'wc-product-gallery-zoom' );
add_theme_support( 'wc-product-gallery-lightbox' );
add_theme_support( 'wc-product-gallery-slider' );
Hi!
In my case, I can not show the images whith lightbox:
https://lascigarreras.net/producto/disco-madre-cigarrera/
This is the code that I added in childtheme’s functions.pho:
/* Woocommerce galerĂas */
add_action( 'after_setup_theme', 'yourtheme_setup' );
function yourtheme_setup() {
add_theme_support( 'wc-product-gallery-lightbox' );
}
I am doing something wrong?