• Hello

    I was wondering if it is possible to stop the shop category images being cropped. When I view the image info it says 270px × 130px (scaled to 156px × 75px). Most of these images have equal width and height so I don’t know why they look like this.

    It seems cropping is either done in virtue or woo commerce.

    Please help

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter yandoos

    (@yandoos)

    Hello I have resized the category images.

    You can make the image output 270 by 270 by changing line 27 of virtue/woocommerce/content-products_cat.php

    $catimgheight = 130;

    to

    $catimgheight = 270;

    Will this rest when virtue is updated?

    Thread Starter yandoos

    (@yandoos)

    Should I move this to my virtue-child folder and keep the original in virtue folder?

    Thanks

    Hey,
    Rather then editing the theme you can just set the images to be square in the theme options > shop settings. “Category Image Aspect Ratio”

    Make sure you are using the latest version.

    Kadence Themes

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Shop category images cropped’ is closed to new replies.