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

    The images for the WooCommerce catalog pages are showing cropped. Although the product images are setup to show uncropped. See this screenshot: https://www.screencast.com/t/r15ukNZu

    You can see the cropped images here: https://staging.srf-books.org/product-category/books/paramahansa-yogananda-books/page/5/

    I already tried regenerating the thumbnails.

    Note that it works fine when I change to the default theme.

    Thanks,

    #1377560

    Hey SRF,

    Thank you for the inquiry.

    The theme designates its own thumbnail size to the catalog pages by default, but you can override it by adding this filter in the functions.php file.

    add_filter( 'avf_wc_before_shop_loop_item_title_img_size', 'avf_wc_before_shop_loop_item_title_img_size_mod', 10, 1 );
    function avf_wc_before_shop_loop_item_title_img_size_mod( $thumbnail_size ) {
        return 'woocommerce_thumbnail';
    }
    

    The selected options in the Product Images panel should apply once the filter is added.

    Best regards,
    Ismael

    #1416589

    Hello,

    We are trying to change the product image size on product category pages from thumbnail to full-size image but the code we are applying is not working, Please help us change the image size on the product category page from thumbnail to full.

    Thank you,

    #1416638

    Hi,
    Try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    add_filter( 'avf_wc_before_shop_loop_item_title_img_size', 'avf_wc_before_shop_loop_item_title_img_size_mod', 10, 1 );
    function avf_wc_before_shop_loop_item_title_img_size_mod( $thumbnail_size ) {
        return 'fullsize';
    }

    Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
    I tested on my test site and the images in a category product page used the original full size image, I couldn’t test on your site because the Authenticator blocked access.

    Best regards,
    Mike

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