Woocommerce, zoom and image galleries with Sage

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.

1 Like

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/.

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.

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

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

Thanks this is exactly what Ive been looking for, thought I had to add it in from scratch.

1 Like