Last active
April 30, 2019 14:43
-
-
Save nvourva/3d4c894ba8576e76a34c7a499c10dccf to your computer and use it in GitHub Desktop.
Customize WooCommerce thumbnail size
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'woocommerce_get_image_size_gallery_thumbnail', 'ci_theme_woo_gallery_thumb_size' ); | |
function ci_theme_woo_gallery_thumb_size() { | |
return array( | |
'width' => 100, | |
'height' => 0, | |
'crop' => 0, | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment