Fixing Woocommerce Related Product Image Sizes

  • Posted on: 25 July 2015
  • By: davis

WooCommerce has some ridiculously huge image sizes enabled by default for "Related Products." Here's the CSS you'll need to make it a bit more reasonable

.woocommerce .related ul.products li.product,
.woocommerce .related ul li.product,
.woocommerce .upsells.products ul.products li.product,
.woocommerce .upsells.products ul li.product,
.woocommerce-page .related ul.products li.product, 
.woocommerce-page .related ul li.product, 
.woocommerce-page .upsells.products ul.products li.product, 
.woocommerce-page .upsells.products ul li.product {
	width: 150px;
}