If you updated to WooCommerce 3.0 and your theme hasn't updated as well how do you make the WooCommerce 3.0 Single Product image gallery work like the previous version?
Is is a question for themes who DO NOT copy template files and DO use conditionals, hooks, and filters to modify to avoid many issues.
To add theme support for the new WooCommerce single product gallery features, you would add in your functions.php file in a child theme:
Using
add_theme_support( 'wc-product-gallery-slider' );
loads FlexSlider. Without any JS issues on my end, I get is the wrong height on load when my product images are not exactly the same size. SmoothHeight is false. Even when it's turned on (via the filter), there is a large gap. All in all, on both Chrome and FireFox this issue persists.Therefore, an easy way to get similar functionality as 2.6 (which didn't have a slider anyway) but with the better lightbox, only add the following theme support:
Then filter the thumbnail images to use the shop_thumbnail size:
Then apply it only in the
woocommerce_product_thumbnails
hook.