Skip to content

Instantly share code, notes, and snippets.

@nvourva
Last active April 30, 2019 14:43
Show Gist options
  • Save nvourva/3d4c894ba8576e76a34c7a499c10dccf to your computer and use it in GitHub Desktop.
Save nvourva/3d4c894ba8576e76a34c7a499c10dccf to your computer and use it in GitHub Desktop.
Customize WooCommerce thumbnail size
<?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