mirror of
https://github.com/woocommerce/storefront.git
synced 2025-08-20 04:00:29 +08:00
Closes #675: Define WooCommerce image sizes.
This commit is contained in:
parent
24508930ae
commit
6735e92a4c
1 changed files with 6 additions and 2 deletions
|
@ -112,7 +112,11 @@ if ( ! class_exists( 'Storefront' ) ) :
|
|||
add_theme_support( 'site-logo', array( 'size' => 'full' ) );
|
||||
|
||||
// Declare WooCommerce support.
|
||||
add_theme_support( 'woocommerce' );
|
||||
add_theme_support( 'woocommerce', apply_filters( 'storefront_woocommerce_args', array(
|
||||
'single_image_width' => 324,
|
||||
'thumbnail_image_width' => 232,
|
||||
) ) );
|
||||
|
||||
add_theme_support( 'wc-product-gallery-zoom' );
|
||||
add_theme_support( 'wc-product-gallery-lightbox' );
|
||||
add_theme_support( 'wc-product-gallery-slider' );
|
||||
|
@ -165,7 +169,7 @@ if ( ! class_exists( 'Storefront' ) ) :
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$sidebar_args = apply_filters( 'storefront_sidebar_args', $sidebar_args );
|
||||
|
||||
foreach ( $sidebar_args as $sidebar => $args ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue