This shortcode [wpv-woo-product-image size="custom" width="225" height="225"]
I try to crop image but it's doesnt work.
and I need to link product image to product 's url but it's link to image file
How can i fix its.
sorry for my english.
Hi, let me check with my 2nd tier support team about this, because I can see that the crop attribute is not supported: https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-woo-product-image
However, you should be able to register your own custom image size with cropping applied. That's not working for me on my local test, so there may be a problem. I'll let you know what I find out.
In the meantime, you might be able to use the wpv-product-featured-image shortcode instead, since it will show the main product image. You can use cropping attributes with that shortcode:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-featured-image
wpv-product-featured-image is work fine but it's like wpv-post-featured-image
that's not working with plugin custom product label.
(I use this one hidden link)
that's plugin is work only with shortcode wpv-woo-product-image
actually it's just some little problem , I have some image come with rectangle shape and when it's scale down
the image height it's not amount 225px
I creat custom thumbnail size for add_image_size( 'custom-size', 225, 225, true );
So can you advise me how to make thumbnail for square image not auto height?
I have some image come with rectangle shape and when it's scale down
the image height it's not amount 225px
The code you have here will crop from the center point, without scaling down:
add_image_size( 'custom-size', 225, 225, true );
You could try cropping from the top, like this:
add_image_size( 'custom-size', 225, 225, array('center', 'top') );
https://developer.wordpress.org/reference/functions/add_image_size/