Woocommerce, zoom and image galleries with Sage

woocommerce

#1

Hi
I’m developing a theme with Sage and WooCommerce.
There is a problem with zoom and images gallery in single product: it’s not enabled and if I link the image it links to the image full size.

If I change to another theme it works.
Where is the problem?
Thank you very much.
Alessnandro


#2

Sage is a boilerplate template, a solid base to build your own theme. It’s not a full fledged theme.
If I were you, I would start by reading this https://roots.io/using-woocommerce-with-sage/.


#3

Many Thxs pixeline.
I had already read the article but don’t help.
Now I search where is the problem and I hope to found it.
thanks
Alex


#4

Ok.
Only to help other person.
You need to activate it.


#5

@eddymouse, add this to extras.php file:

add_action( 'after_setup_theme', function() {
  add_theme_support( 'wc-product-gallery-zoom' );
  add_theme_support( 'wc-product-gallery-lightbox' );
  add_theme_support( 'wc-product-gallery-slider' );
} );