How to fix woocommerce image size

Dec 29 2017
CreepesLab

Woocommerce is very popular eCommerce website made by wordpress. Sometimes this site products images is now display in correct size. How to fix it?

First you can open theme folder then function.php file & paste below code in this file last. Image will be full size.

function woocommerce_template_loop_product_thumbnail(){
  	global $product;
	$image_size='full';
	echo $product ? $product->get_image( $image_size ) : '';
}


Second you can open theme folder then style.css file & paste below code in this file last. Image will be fixed height 350px size.

.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {
    max-height: 350px;
    overflow: hidden;
}


Thank you for reading the article. Hope to share and comment if you like the article.

Share: