skip to Main Content

Search WordPress Code Snippets – Quick Solutions for Developers


How to Customize WooCommerce Product Thumbnails Easily

Want your product images to stand out? Use this simple PHP code to set your WooCommerce shop thumbnails to 300×300 pixels and enhance your store’s look!

// Change product thumbnail size on shop page
add_filter( 'woocommerce_get_image_size_thumbnail', function( $size ) {
    return array( 'width' => 300, 'height' => 300, 'crop' => true );
});

I’m a WordPress developer with 10+ years of experience in WooCommerce and custom plugins. I combine technical expertise with design flair to help you create standout, user-friendly websites. Let’s transform your digital presence!

Back To Top