From 1bd7160dd75f32c215e283e358ed2d5a8fac0f2e Mon Sep 17 00:00:00 2001 From: Jason King Date: Wed, 10 Jan 2018 16:11:37 +1030 Subject: [PATCH 1/2] Enable woocommerce product gallery slider by default. --- inc/woocommerce.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/inc/woocommerce.php b/inc/woocommerce.php index 662a280..cb39917 100644 --- a/inc/woocommerce.php +++ b/inc/woocommerce.php @@ -15,9 +15,7 @@ if ( ! function_exists( 'understrap_woocommerce_support' ) ) { // 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' ); + add_theme_support( 'wc-product-gallery-slider' ); // hook in and customizer form fields. add_filter( 'woocommerce_form_field_args', 'understrap_wc_form_field_args', 10, 3 ); From 3d6236d984007d60f7272cd4fe07b9e3b45e8eea Mon Sep 17 00:00:00 2001 From: Jason King Date: Wed, 10 Jan 2018 16:12:54 +1030 Subject: [PATCH 2/2] Place woocommerce product gallery slider fix before img max width declarations. --- sass/understrap/understrap.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sass/understrap/understrap.scss b/sass/understrap/understrap.scss index 0b33115..0d92033 100644 --- a/sass/understrap/understrap.scss +++ b/sass/understrap/understrap.scss @@ -43,6 +43,11 @@ // Post design .entry-footer span { padding-right: 10px; } +//Woocommerce product gallery slider width fix +figure.woocommerce-product-gallery__wrapper { + max-width: inherit !important; +} + // Limit featured image size to 100% img.wp-post-image, article img,