From 363776ccd269df9d7c150fa12101fd8313f123f9 Mon Sep 17 00:00:00 2001 From: Jason King Date: Fri, 14 Apr 2017 20:17:51 +0930 Subject: [PATCH] Adding Woocommerce 3.0.0 Product Gallery Support Gallery slider needs Flexslider - https://woocommerce.com/flexslider/. Holger will need to make the decision if this is to be implemented. --- inc/woocommerce.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/inc/woocommerce.php b/inc/woocommerce.php index f9529bd..157fcf4 100644 --- a/inc/woocommerce.php +++ b/inc/woocommerce.php @@ -11,6 +11,14 @@ if ( ! function_exists( 'woocommerce_support' ) ) { */ function woocommerce_support() { add_theme_support( 'woocommerce' ); + + // Add New Woocommerce 3.0.0 Product Gallery support + add_theme_support( 'wc-product-gallery-lightbox' ); + add_theme_support( 'wc-product-gallery-zoom' ); + + // Gallery slider needs Flexslider - https://woocommerce.com/flexslider/ + //add_theme_support( 'wc-product-gallery-slider' ); + // hook in and customizer form fields. add_filter( 'woocommerce_form_field_args', 'wc_form_field_args', 10, 3 ); } @@ -91,4 +99,4 @@ function wc_form_field_args( $args, $key, $value = null ) { break; } // end switch ($args). return $args; -} \ No newline at end of file +}