Merge pull request #519 from typeplus/master
Woocommerce Product Slider Gallery Fix - Thx @typeplus !
This commit is contained in:
commit
b3e596d7de
|
@ -15,9 +15,7 @@ if ( ! function_exists( 'understrap_woocommerce_support' ) ) {
|
||||||
// Add New Woocommerce 3.0.0 Product Gallery support
|
// Add New Woocommerce 3.0.0 Product Gallery support
|
||||||
add_theme_support( 'wc-product-gallery-lightbox' );
|
add_theme_support( 'wc-product-gallery-lightbox' );
|
||||||
add_theme_support( 'wc-product-gallery-zoom' );
|
add_theme_support( 'wc-product-gallery-zoom' );
|
||||||
|
add_theme_support( 'wc-product-gallery-slider' );
|
||||||
// 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', 'understrap_wc_form_field_args', 10, 3 );
|
add_filter( 'woocommerce_form_field_args', 'understrap_wc_form_field_args', 10, 3 );
|
||||||
|
|
|
@ -43,6 +43,11 @@
|
||||||
// Post design
|
// Post design
|
||||||
.entry-footer span { padding-right: 10px; }
|
.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%
|
// Limit featured image size to 100%
|
||||||
img.wp-post-image,
|
img.wp-post-image,
|
||||||
article img,
|
article img,
|
||||||
|
|
Reference in New Issue