Home › Forums › WoodMart support forum › Hover effect on product grid not correct for horizontal images.
Hover effect on product grid not correct for horizontal images.
- This topic has 10 replies, 3 voices, and was last updated 1 year, 10 months ago by Artem Temos.
-
AuthorPosts
-
February 9, 2023 at 1:07 am #441519
oasisart.nlParticipantHi there, on my product grid widgets the image zoom effect is not correct for all image ratios.
For horizontal images (width > height) the thumbnail used for the zoom effect should be cropped automatically and horizontally center the image. However, it gets cropped from left to right resulting in 2 white blank spaces of padding being visible on the top and bottom which looks very clunky. Could you please write me a snippet of code which can fix this? Thanks very much in advance
Attachments:
You must be logged in to view attached files.February 9, 2023 at 5:26 am #441554
Elise NoromitMemberHello,
Please insert the site admin access into the Private content below the message area. We will take a closer look at the case.
In addition, please provide the page URL with the problem.
Best Regards
February 9, 2023 at 3:31 pm #441776
oasisart.nlParticipantThank you for your reply,
I placed the info in the private content box
February 10, 2023 at 10:10 am #441961
Artem TemosKeymasterSorry, but we don’t understand what is wrong with the hover image. Your main and hover images have different sizes. They can’t look the same as with the product with similar images.
Kind Regards
February 10, 2023 at 5:10 pm #442122
oasisart.nlParticipantThe product which display correct have different images as well. but they are pictures which have a larger height than width.
Why wouldn’t it be possible to instead cover/fill the image in the same way for pictures with a larger width than height? It looks very unprofessional now, and it should be fixable.
Attachments:
You must be logged in to view attached files.February 10, 2023 at 5:19 pm #442127
Artem TemosKeymasterIf you want to crop the image, you can enable this in Appearance -> Customize -> WooCommerce -> Product images.
February 10, 2023 at 6:09 pm #442141
oasisart.nlParticipantI fixed the product bundle thumbnail issue now on the live site by uploading a new picture and cropping it to 1:1 before uploading. The other image was also cropped in wordpress media, however the original image was not square and one way or another the cropped version was not used in the frontend. Cropping the bundle images is doable for all new product bundles, because these images can be square anyways.
However, for the other issue (zoom on hover issue), do you think i can fix it by cropping the thumbnails in Woocommerce? Maybe i can regenerate thumbnails in wordpress?
I cant crop these image myselve, because not all full images (Those used for the zoom) are square. Some are rectangular.
February 10, 2023 at 6:10 pm #442142
oasisart.nlParticipantalso, for the product bundle the ATC button still displays different than for regular products. Is this something that can be fixed? It seems that the ‘PRODUCT BEKIJJKEN’ text doesn’t apply to bundled product ATC buttons
February 10, 2023 at 6:14 pm #442143
Artem TemosKeymasterPlease, keep your replies for separate issues in separate topics to not confuse things.
As for the cropping, yes, you can enable it in WooCommerce settings and they will be cropped automatically.
February 10, 2023 at 6:18 pm #442144
oasisart.nlParticipantSo why are they not cropped yet? As the setting is already enabled.
February 10, 2023 at 6:23 pm #442146
Artem TemosKeymasterYou overridden images size for the products element so settings from WooCommerce are not effective on the home page now https://gyazo.com/a55031708f38bd4853d7bcb72d80f64a
-
AuthorPosts
- You must be logged in to create new topics. Login / Register