Add New WooCommerce Gallery Features
The new gallery introduced in 3.0.0 ( read here for more information) uses Flexslider, Photoswipe, and the jQuery Zoom plugin to offer swiping, lightboxes and other neat features.
Our older themes don't have this update and some aren't Woo Ready but to enable the new gallery feature, you can declare support into your functions.php
file.
add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' );
You don't have to have all 3 feature; you can mix and match as you choose. If a feature is not supported, the scripts will not be loaded and the gallery code will not execute on product pages.