This topic has 8 replies, 2 voices, and was last updated 2 years, 7 months ago ago by Olga Barlow
I closed the previous topic therefore I am returning to it here.
https://www.8theme.com/topic/how-to-set-the-dimension-of-the-image-field-in-the-product-list/#post-316531
Your proposed implementation works very well in the designated areas we wrote about.
However, we have a problem with the same in the mobile option. Picture in the link: https://prnt.sc/axAqgr94N5Lj
How to remedy this?
The above setting also caused the images to show up badly on the product page. In categories according to the above codes they are nicely clipped to the designated size, but on the product page they are often too large and on the entire page. What can we do about it?
Hello,
Remove media query for this code https://prnt.sc/Zqfp1SHK5fzZ
Or add a media query for the smaller devices and reduce the height.
Regards
Unfortunately this solution did not help because the height of the frame increased significantly.
Hello,
Unfortunately, in this case, the only solution is to use a hard crop for the images (Theme Options > WooCommerce > Product images) or upload all the images with the same proportions.
Regards
Thank you for the information.
I have one more question for the solution used. Fields of product photos are the same height, but when the photo is higher we have a problem with the label text moving below. Can you suggest what to change so that this does not happen?
Example in the link. Thank you.
Hello,
It’s because of styles that the third-party plugin adds for the div inside the image block.
Try to add custom code below and check if that helps you:
.product-content-image > div {
position: static !important;
}
Regards
Yes, it works. Great. Thank you. I tried that, but something went wrong. It’s great now.
Hello,
You are welcome.
Regards
Tagged: dimensions, images, products, setup, theme, woocommerce, wordpress
The issue related to '‘How to set the dimension of the image field in the product list – part 2’' has been successfully resolved, and the topic is now closed for further responses