Home › Forums › WoodMart support forum › Image crop / resize on product page
Image crop / resize on product page
- This topic has 16 replies, 2 voices, and was last updated 1 year, 10 months ago by
Artem Temos.
-
AuthorPosts
-
June 6, 2023 at 9:48 am #472877
mortengottliebsenParticipantHello
I have managed to crop images on shop page, but when it opens up on product single page, the images are no longer cropped. Talked with woocommerce, and they suspect that your theme does not allow for the cropping on the single page product.
Attachments:
You must be logged in to view attached files.June 6, 2023 at 12:53 pm #472957
Artem TemosKeymasterHello,
Could you please check how it works with some default WordPress themes like TwentyTwenty or WooCommerce Storefront to understand is it our theme issue or not?
Regards
June 6, 2023 at 1:57 pm #472977
mortengottliebsenParticipantIts 50/50, some looks right and some does still not look right.
The first screen shot I sent you, there are the last 3 image sizes, they all end on “0”, they should end on the same as the first size, making a square. But I cant find where to change that.
June 6, 2023 at 2:18 pm #472982
Artem TemosKeymasterSorry, but you didn’t attach a screenshot.
June 6, 2023 at 8:13 pm #473119
mortengottliebsenParticipanthere are the screen shots
Attachments:
You must be logged in to view attached files.June 7, 2023 at 11:56 am #473213
Artem TemosKeymasterTry to add the following PHP code snippet to the child theme functions.php file to do this
add_filter( 'woocommerce_gallery_thumbnail_size', function ($sizes) { return array( 150, 150 ); });
Also, leave this field empty in Theme Settings https://monosnap.com/file/PV0hXgKZE3FQ9jRgq2ktdEuLAvWHv8
June 7, 2023 at 12:24 pm #473227
mortengottliebsenParticipantBeen trying that. Only seems like the thumbnail is getting blury
Attachments:
You must be logged in to view attached files.June 7, 2023 at 2:20 pm #473268
Artem TemosKeymasterSorry, you need to enable thumbnails bottom position option in Theme Settings -> Single product -> Images. Then it will look similar to the default theme.
Kind Regards
June 7, 2023 at 2:26 pm #473269
mortengottliebsenParticipantthere are no thumb nails now, after I changed. Screen flickers and they disapeer.
But I still need to find a solution for the product image to be square.Attachments:
You must be logged in to view attached files.June 7, 2023 at 2:29 pm #473272
mortengottliebsenParticipantactually the thumbnails are so far down I didn’t notise
Attachments:
You must be logged in to view attached files.June 7, 2023 at 4:23 pm #473327
Artem TemosKeymasterIn this case, you need to activate the autoheight option for the product gallery in Theme Settings.
Kind Regards
June 7, 2023 at 4:54 pm #473340
mortengottliebsenParticipantdone that, but it still does not fix the issues with a square product image.
June 7, 2023 at 5:23 pm #473353
Artem TemosKeymasterNow it works as with the default theme. As per the WooCommerce configuration. What square images do you mean?
June 7, 2023 at 6:12 pm #473379
mortengottliebsenParticipantThe squares was my first question in this topic. Like the shop page, I want the product single page to be like this.
Attachments:
You must be logged in to view attached files.June 8, 2023 at 9:17 am #473452
Artem TemosKeymasterBut as we understood from the first message, WooCommerce said that images should be cropped on the single product page too. But as you sent a screenshot from the default theme, WooCommerce doesn’t crop images on the single product page. So it is not a problem with the theme but the way WooCommerce works.
June 8, 2023 at 9:24 am #473457
mortengottliebsenParticipantMy first screenshot shows the 3 last images, has a “0” as the hight. All the others are same size, so my question was where can I make those changes?
Attachments:
You must be logged in to view attached files.June 8, 2023 at 12:06 pm #473525
Artem TemosKeymasterHello,
These image sizes are registered by the WooCommerce plugin, not by the theme. You need to refer to its documentation or support on this matter.
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register