-
AuthorPosts
-
April 30, 2019 at 11:17 pm #1095960
While troubleshooting product category images being cropped when larger than 423px, I discovered that Enfold is using the [entry_without_sidebar] image for product category images. I was able to find this code to modify the image size, which prevented it from cropping:
function avia_change_image_size_array() { global $avia_config; $avia_config['imgSize']['entry_without_sidebar']= array('width'=>1210, 'height'=>1210 ); // images for fullsize pages and fullsize slider avia_backend_add_thumbnail_size($avia_config); } add_action( 'init', 'avia_change_image_size_array', 1);
However, I would rather use another image size altogether that seems more appropriate for my category images, like the Woocommerce catalog size, or single product size. Is there a way to redefine which image resize is used for the product category image?
Thanks!
May 3, 2019 at 10:39 am #1096842Hey Burnt Pixel,
You can look for a plugin that does that. Something like Simple Image sizes.
Best regards,
VictoriaMay 7, 2019 at 7:09 pm #1098171Hi Victoria,
Thanks for the reply. Simple Image Sizes plugin seems to do a nice job helping you define sizes, but it would not change the image size that the theme calls for. I was successfully able to redefine this image size as I mentioned above through a quick edit in functions.php, however I am trying to have the system call for a different, predefined image size: specifically the catalog image. That way I am not resizing [entry_without_sidebar] which is intended to be a much larger image and will have adverse effects in the future should the system call on it. Does that make sense?
Thanks,
BP
May 9, 2019 at 10:16 am #1098831Hi Burnt Pixel ,
Well, there is not a way to identify uniquely the catalog image size in this case. You can try to go to the customizer, find WooCommerce settings there for the display.
Best regards,
VictoriaJuly 4, 2020 at 7:16 am #1227875Hi BurntPixel,
have you found a solution to change the image size which is being used? Or did you have to follow the solution of the support team?
Thx in advance.
MaxJuly 5, 2020 at 6:14 pm #1228063I never found a way to change which predefined image resize Woocommerce uses.
I’m still surprised that [entry-without-sidebar] which, if I recall correctly, is a full-width image, is the image resize enfold uses for category images.
I see categories displayed with large, square thumbnail images much more frequently than sprawling full-width images.
At least defining the category images as a separate image class would let us define a smaller, faster size for our category images. I mean, why [entry-without-sidebar] and not, say, the default product image class? It just seemed like an unintuitive choice to me. Do people typically have enormous category images? Strange.
That said, I love Enfold.
July 6, 2020 at 10:41 am #1228247thx for the answer!
-
AuthorPosts
- You must be logged in to reply to this topic.