WooCommerce single product page.
This support request was posted in Smart by Alex
- Juanfra Aldasoro January 31, 2018 at 8:10 pm
Hi Alex,
I hope you are doing well. Thank you for the follow-up.
The catalog images should be resized according to the values you set in the WooCommerce settings. Please have in mind that the size in which they will be shown depends exclusively on the amount of columns you have for the catalog. So, let’s say that you have two columns, then the columns width will be half of the size of the site container width.
With regards to the product thumbnails, I understand that you want to change the size of the thumbnails below the main product image in the single product page. The size may vary, but again, it is the same scenario as the catalogue page. The width there is set via JavaScript with the Owl Carousel library. It defaults to 4 thumbnails according to the size of the carousel. What would you like to change there?
Best,
Juan.Juanfra Aldasoro February 1, 2018 at 2:54 pmHi Alex,
Thank you for the follow-up.
Well, it seems that for the kind of images you are using, the only solution would be setting a square value to the catalog image (for example 300×300).
Best,
Juan.Juanfra Aldasoro February 2, 2018 at 1:33 pmHi Alex,
Thank you for the follow-up.
Would you please try the following code?
Best,
JuanHi Juan!
Thanks for your solution, and it seams that it is work. Because after I add this code the values in WooCommerce settings changed to the 300*300. After it I regenerate thumbnails. But on catalogue page they are shown as a rectangle and not as a square. Is it setup by catalogue page template?Alex.
Juanfra Aldasoro February 5, 2018 at 3:00 pmHi Alex,
Thanks for the follow-up.
Please try adding the following custom CSS:
.woocommerce .grid .item-caption-inner img { object-fit: contain; }
Best,
Juan.Hi Juan!
Thanks a lot for your help. Now it works perfect, as I want it!
Have a nice day.
Alex.
This topic is marked as resolved
Only the topic author can re-open this thread.