• Resolved nmballa

    (@nmballa)


    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

    (@nlemsieh)

    Hi @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

    (@nlemsieh)

    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.