• Hi, I recently noticed that the plugin loads full size images on product pages (1000px), even though the rendered size is usually 100px for fbt products.

    Could you provide me with a snippet so that the plugin always loads (woocommerce_thumbnail) preferably?

    https://developer.woo.com/docs/image-sizing-for-theme-developers/

    I tried using snippets with the function (max_srcset_image_width) but I didn’t have success, since I don’t have much experience with PHP yet.

    Thanks for your help !

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support crodriguez1991

    (@crodriguez1991)

    Hello there,

    Thanks for contacting us and I hope you’re doing well :D.

    Please, replace the following template in the following plugin path:

    wp-content/plugins/yith-woocommerce-frequently-bought-together/templates/

    Then, try to add the following code in the functions.php of your active theme:

    if( !function_exists('yith_wcfbt_image_size_change_size') ) {
        function yith_wcfbt_image_size_change_size($size)
        {
            $size = 'woocommerce_thumbnail';
            return $size;
        }
    
        add_filter('yith_wcfbt_image_size', 'yith_wcfbt_image_size_change_size');
    }

    In this way, the size will be the woocommerce_thumnail size.

    Please, try it and let me know.

    Have a good day.

Viewing 1 replies (of 1 total)
  • The topic ‘Images intrinsic size are too large’ is closed to new replies.