• Resolved harpo1984

    (@harpo1984)


    Hi Yith,

    How can I change the thumbnail size of the brand image?

    If I change it via CSS, the image is blurry.

    I think you have a filter for this that I spotted in the changelog.

    However, I’m not sure how to use it.

    Kind regards,

    Simon

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hello there,

    hope you are doing well! ??

    You can try to add this custom code in the functions.php of your active theme:

    if(!function_exists('yith_wcbr_change_image_single_product_brads')) {
     function yith_wcbr_change_image_single_product_brads($image,$thumbnail_id)
        {
     $image = wp_get_attachment_image( $thumbnail_id, array(200,200) );
    
     return $image;
    
     }
    
        add_filter('yith_wcbr_image_size_single_product_brads', 'yith_wcbr_change_image_single_product_brads',10,2);
    }

    You can change the image size.

    Let us know.

    Have a great day!

    Thread Starter harpo1984

    (@harpo1984)

    Hi Yith!

    Awesome, it worked perfectly…thank you!!!

    Kind regards,

    Simon

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change Thumbnail Size of Brand’ is closed to new replies.