Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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!

    #1096842

    Hey Burnt Pixel,

    You can look for a plugin that does that. Something like Simple Image sizes.

    Best regards,
    Victoria

    #1098171

    Hi 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

    #1098831

    Hi 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,
    Victoria

    #1227875

    Hi 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.
    Max

    #1228063

    I 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.

    #1228247

    thx for the answer!

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.