This topic has 6 replies, 3 voices, and was last updated 7 years, 11 months ago ago by Olga Barlow
on the shop or category pages, when a product image is not a perfect square, the title aligment of each product in that row of products is off. the title appears under the image and not in line with the other titles. this is not ideal.
Hello,
If you use images with different size you can enable crop option in WooCommerce settings (WooCommerce > Settings > Products > Display) to make them equal height. Or you may try to add max-height for your image block, this is not good practice in general but if you want to have all the image block with the same size it can be like workaround for you.
Regards
Hi, I am trying to do the same thing here. Referring to your last answer, where do I add max-height to adjust the image block?
Hello, @hazwan,
Provide, please, link to your site and screenshot of the block where you want to add max-height. I’ll check and send you the custom CSS.
Regards
Hi,
Below are the link and screenshots
Hello, @hazwan,
1) Go to Theme Options > Styling > Custom CSS > add the following code in custom CSS
.content-product .product-content-image img {min-width: 1px;}
2) Go to WooCommerce > Settings > Products > Display > Catalog Image settings and set height 262px, Hard Crop – Off.
3) Go to Plugins > Install and activate Regenerate Thumbnails plugin. After that go to Tools > Regenerate thumbnails and regenerate all the images.
Regards
You must be logged in to reply to this topic.Log in/Sign up