Woocommerce thumbnail image fitting | WordPress.org

[ad_1]

Hello,

I have found many posts about my image height problem on the forums with many CSS proposed to solve it but I can’t solve it.
I import different products from supplier databases on my site that have images of different sizes (over 100,000 products) and so I can’t take them individually to harmonize them.
I tried to use an extension to regenerate the thumbnails but it didn’t work or maybe I didn’t know how to use it.
I also took the CSS code from my site in its old version (Porto theme) to apply it to its new version (Astra theme) but it doesn’t seem to have any effect. I added different CSS codes found on the internet but no result either.

Could you help me to solve my problem ?

An example of code that I add using the theme customizer is:

.product-image img {

    height: 250px;

    width: auto;

    object-fit: contain;

}

Is this code incorrect or not placed in the right place?

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer