Home Forums WoodMart support forum Product grid image class

Product grid image class

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #37913

    jinsley8
    Participant

    Hi,

    Do you know what image size class is used for the product grid images on shop/archive pages for get_the_post_thumbnail() ? Like thumbnail, full, medium, etc.?

    https://developer.wordpress.org/reference/functions/wp_get_attachment_image/

    I created a custom grid and used ‘shop_catalog’ but the images displayed are full size instead of scaled down shop sized images.

    Example here of how I called the shop images but it’s giving me full size:
    get_the_post_thumbnail(get_the_ID(), ‘shop_catalog’);

    I tried ‘medium’ instead and it displays smaller images, which is great, but the regular shop images are a bit bigger and preferred.

    Thanks

    #37954

    Artem Temos
    Keymaster

    Hi,

    Our theme doesn’t override default WooCommerce images sizes. So if you are running WooCommerce 3.2.6 and older, the size is shop_catalog and if WC 3.3+ – woocommerce_thumbnail.

    Regards

    #37960

    jinsley8
    Participant

    Oh good to know, I didn’t know it changed in 3.3

    Thanks again!

    #37967

    Artem Temos
    Keymaster

    You are welcome!

Viewing 4 posts - 1 through 4 (of 4 total)