Home Forums WoodMart support forum thumbnail image size

thumbnail image size

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #43814

    shimaAb
    Participant

    Hi, I have a question about “products image size” in the widget area. when I change the thumbnail size in customization, the “products image size” in the widget will be changed and ok, but products image size in the shop will be changed too. this is too bad for GTmetrix rate on scaled image. can you help me, please?
    For a more clear explanation see the attachments and below link.
    https://gtmetrix.com/reports/woodmart.xtemos.com/9cvDwde6

    Attachments:
    You must be logged in to view attached files.
    #43839

    Artem Temos
    Keymaster

    Hello,

    Thank you so much for contacting our support center.

    Yes, it is a WooCommerce issue that it uses the same images size for products on the shop page in widgets. Unfortunately, it doesn’t depend on our theme and we don’t have a fix for this. We will try to find some workaround for this in our future updates.

    Kind Regards
    XTemos Studio

    #43870

    shimaAb
    Participant

    that’s too bad 🙁 , I should render the site at the fastest time, and this problem is very important in GTmetrix issue.
    This is very promising that you are working on this problem, but can you tell me how much times should I wait?
    thank you

    #43905

    Artem Temos
    Keymaster

    You can try to change it manually in the file woodmart/woocommerce/content-widget-product.php
    change this line

    <?php echo wp_kses( $product->get_image(), array( 'img' => array('class' => true,'width' => true,'height' => true,'src' => true,'alt' => true) ) );?>

    with this one

    <?php echo wp_kses( $product->get_image( array( 65, 65 ) ), array( 'img' => array('class' => true,'width' => true,'height' => true,'src' => true,'alt' => true) ) );?>

    #43922

    shimaAb
    Participant

    yes, it’s work. thank you very much. 🙂

    #43926

    Artem Temos
    Keymaster

    You are welcome!

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

The topic ‘thumbnail image size’ is closed to new replies.