• Resolved joint77

    (@joint77)


    Hi, how can I change the height and width of category in schop page?

    I’ve setting in woocommerce catalogue in 300px x 300px but in Shop page the images are always 270px × 130px

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter joint77

    (@joint77)

    I would like to have in the shop images 300 x 300 px, is possible?

    Hi Joint,

    Do you have the URL of the site you are doing so I can look into this?

    NOTE – If you have uploaded the images and then changed the size in woocommerce you have to regenerate the thumbnails before the resize will work.

    cheers
    J

    Thread Starter joint77

    (@joint77)

    Hi, thanks 4 your answer.

    This il the link in shop url.

    I’ve regenerate thumbnails with Regenerate Thumbnails Plug In.

    Thanks.

    So this is an image linked too a category, so technically not the product image hence why woocommerce resize isnt working. Where is the image been pulled from is it a Category Image?

    Thread Starter joint77

    (@joint77)

    I’ve created a categoy and uploaded the image in thumbnail field of category.

    The image is HERE

    Hey, this requires some changing of the code. the theme is set up to put out rows of 3 for category images when a sidebar is used. If you change the file crop size in the code it will still out into columns of three giving it a max width of 270 px.

    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;

    Hope that helps,
    Kadence Themes

    Thread Starter joint77

    (@joint77)

    Thanks a lot, all work perfectly!

    As Kadence said the theme file will need manipulating as its a category image so it cannot be manipulated through the Woocommerce Settings.

    hope you get it sorted
    J

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Change height and width images of Category in shop page’ is closed to new replies.