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.
This commit is contained in:
Jason King 2017-04-14 20:17:51 +09:30 committed by GitHub
parent d0175f7b86
commit 363776ccd2
1 changed files with 9 additions and 1 deletions

View File

@ -11,6 +11,14 @@ if ( ! function_exists( 'woocommerce_support' ) ) {
*/ */
function woocommerce_support() { function woocommerce_support() {
add_theme_support( 'woocommerce' ); 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. // hook in and customizer form fields.
add_filter( 'woocommerce_form_field_args', 'wc_form_field_args', 10, 3 ); add_filter( 'woocommerce_form_field_args', 'wc_form_field_args', 10, 3 );
} }