Created
July 27, 2018 11:17
-
-
Save Nikschavan/a854d72a47edfdca3be3bf35ea6c824c to your computer and use it in GitHub Desktop.
Change WooCommerce product gallery image thumbnail dimensions
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 | |
/** | |
* Change WooCommerce product gallery image thumbnail dimensions. | |
* | |
* @return Array Array( height, width ) | |
*/ | |
function your_prefix_gallery_image_sizes() { | |
return array( | |
600, | |
600 | |
); | |
} | |
add_filter( 'woocommerce_gallery_thumbnail_size', 'your_prefix_gallery_image_sizes' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment