Title: Category custom size
Last modified: September 3, 2021

---

# Category custom size

 *  Resolved [nmballa](https://wordpress.org/support/users/nmballa/)
 * (@nmballa)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/category-custom-size/)
 * My images for category are defaulting to 324×324. Can you provide the code snippet
   to override this in functions.
 * I assume it is something similar to the following;
 * add_filter(‘woocommerce_get_category_image_size_thumbnail’, function(){
    return[‘
   width’ => 500, ‘height’ => 500, ‘crop’ => 0 ]; });

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Nabil Lemsieh](https://wordpress.org/support/users/nlemsieh/)
 * (@nlemsieh)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/category-custom-size/#post-14837237)
 * Hi [@nmballa](https://wordpress.org/support/users/nmballa/)
 * You can use the code snippet below to change the default width and height dimensions:
 *     ```
       add_filter( 'woocommerce_get_image_size_thumbnail', function() {
       return ['width' => 500, 'height' => 500, 'crop' => 0];
       });
       ```
   
 *  Plugin Author [Nabil Lemsieh](https://wordpress.org/support/users/nlemsieh/)
 * (@nlemsieh)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/category-custom-size/#post-14867280)
 * Hi,
 * I’m closing this for now, if you have any other questions you can start a new
   thread.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Category custom size’ is closed to new replies.

 * ![](https://ps.w.org/smart-image-resize/assets/icon-256x256.jpg?rev=2142235)
 * [Smart Image Resize - Make WooCommerce Images the Same Size](https://wordpress.org/plugins/smart-image-resize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/smart-image-resize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/smart-image-resize/)
 * [Active Topics](https://wordpress.org/support/plugin/smart-image-resize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/smart-image-resize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/smart-image-resize/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Nabil Lemsieh](https://wordpress.org/support/users/nlemsieh/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/category-custom-size/#post-14867280)
 * Status: resolved