Make product gallery display in same container as main product image (WooCommerce)

Hey guys,

I’m using the latest versions of Pro and WooCommerce. By default, the product gallery (the thumbnails below the main product image) open in a lightbox. I do not want this. I’m wondering how to make these images open in the same container as the main product image. Examples in secure note.

Please let me know. Thanks!

Hi,

Please refer to the link below

https://www.templatemonster.com/help/woocommerce-how-to-disable-product-images-lightbox-gallery.html

Those instructions are specific to their themes. We do not have that option in Pro theme, here’s a screenshot to show you: https://gyazo.com/5c2a23ebcd992dc2e3ee3b4a8b02c55e

Can someone please give me more tailored advice. Thanks.

Hello There,

I have checked your site and I can see that a product gallery slider is working. Clicking a thumbnail will scroll the main product image. Please keep in mind that WooCommerce does not have the same functionality with shopify. If you do not want to display the product gallery slider and the lightbox, since the child theme is set up, please add the following code in your child theme’s functions.php file

add_filter( 'after_setup_theme', 'remove_new_wc_features', 99 );

function remove_new_wc_features() {
	remove_theme_support( 'wc-product-gallery-zoom' );
	remove_theme_support( 'wc-product-gallery-lightbox' );
	remove_theme_support( 'wc-product-gallery-slider' );
}

This will remove the product gallery slider, gallery lightbox and gallery zoom support.

Hope this helps.

I enabled the slider since posting this thread because it was the closest I could find to Shopify’s default functionality. But now, I’m having an issue with the main product image not being responsive. It was responsive before when I had the slider disabled. So let’s say I disable the slider again - is there any way to get the gallery images to open in the same container as the main product image? (which was my original question)

Hey There,

I have replied your other thread:

Please let us know how it goes.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.