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

    In the “Product list” widget the thumbnails are cropped :(
    How can I prevent the thumbnails from being cropped?
    Also, how can I get the thumbnails of the “Product list” widget larger?
    Please see link in Private content.

    Best regards
    Oriano

    #1342641

    Hey orianos,

    Thank you for the inquiry.

    You have to modify or override the woocommerce/templates/content-widget-product.php file and define a custom thumbnail for the get_image function in this code around line 32.

    <?php echo $product->get_image(); // PHPCS:Ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
    

    Please check this documentation for more info on how to override a Woocommerce template file.

    // https://woocommerce.com/document/template-structure/

    Best regards,
    Ismael

    #1342691

    Hi Ismael

    Thanks for your answer.

    Best regards
    Oriano

    #1342697

    Hi Oriano,

    We are glad that Ismael could help you out!

    Let us know if you have any other questions and enjoy the rest of your day :)

    Cheers!
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Product list, thumbnails’ is closed to new replies.