Images pop in in WooCommerce

Posted in: Newspaper
Post count: 260

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.
Post count: 20688

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

Post count: 260

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

Post count: 260

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
Post count: 20688

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.

Post count: 260

Ok thanks.
Indeed all it seems working now.
I suppose it was a cache plugin problem.
I deactivate a lot of functions and maybe it correct all this.
Regards

Post count: 260

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

Post count: 20688

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' );

Post count: 260

Now it is worl=ing! 🙂
Many thanks

Post count: 1

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?

Viewing 10 posts - 1 through 10 (of 10 total)
The forum ‘Newspaper’ is closed to new topics and replies.