Home Forums WoodMart support forum Bugs in the size of thumbnails of products

Bugs in the size of thumbnails of products

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

    seyedrezabazyar1
    Participant

    hello
    There is a big problem with the template: Large images are equal to small images

    The size of the thumbnails should be 100 x 100. When we click on it, the actual size of the images should be displayed.

    For Example:
    Woodmart Theme:
    Large image size: https://xtemos.com/image.jpg
    Gallery thumbnails: https://xtemos.com/image.jpg
    Thumbnails in Woodmart Theme

    Other themes:
    Large image size: https://xtemos.com/image.jpg
    Gallery thumbnails: https://xtemos.com/image-100×100.jpg
    Thumbnails in other themes

    #272973

    Hello,

    I do apologize for the delay.

    Our dev team is working on the option to set the size of the thumbnails in the gallery and this feature is to be implemented in our nearest update. We plan to release the new version by the end of the month.

    If you have any questions please feel free to contact us.

    Best Regards

    #273010

    dido76bg
    Participant

    Hi!

    In your child theme you can copy and paste product-thumbnails.php from main theme as a custom template and change:
    $thumbnail = wp_get_attachment_image_src( $attachment_id, ‘woocommerce_thumbnail’ );
    to
    $thumbnail = wp_get_attachment_image_src( $attachment_id, ‘woocommerce_gallery_thumbnail’ );

    look here for the result
    https://dev.bgfresh.com/produkti/banja/plochki-za-banja/barca/granitogres-barca-caldo-ft-40×80-cm/

    #273099

    Thank you for sharing the code.

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