Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1388191

    Hi guys,

    Enfold adds four new WooCommerce image sizes.

    shop_thumbnail
    shop_catalog
    shop_single
    shop_gallery_thumbnail

    Is there a way to stop these image sizes from cropping?
    I am looking for a function to edit the settings.

    I am looking to improve my ecommerce sites by adding some code so users can upload any image size and it will work with Enfold. But on some sites I am experiencing inconsistent image behaviour in the image gallery.

    The easiest fix for this is to stop these four image sizes from cropping.

    Please can you provide me with some code for functions.php? I cannot find an existing thread that shows how to remove the crop.

    #1390301
    add_action('after_setup_theme', 'update_enfold_image_sizes');
    	function update_enfold_image_sizes() {
    add_image_size ('shop_thumbnail', 200, 0, false );
    add_image_size ('shop_catalog', 450, 0, false);
    add_image_size ('shop_gallery_thumbnail', 300, 0, false);
    }

    Found it.

    I have a content partner providing imagery for thousands of products and they are all poorly cropped so i am trying to make it so that they will display correctly without having to be re-sized to a specific aspect ratio. I’ll share my solution on my other thread.

    #1393866

    Hi!

    Related thread: https://kriesi.at/support/topic/woocommerce-make-images-in-shop-the-same-aspect-ratio/

    Best regards,
    Ismael

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