• Wayne

    (@waynep16)


    1. The brand thumbnail list is always showing 60×60.png hard cropped. How can we change this? I can see a filter called yith_wcbr_grid_logo_size but on the shortcode there is no way to control size of brand image in the grid.

    2. Using Yith Catalogue mode and adding brand image show after price doesn’t work because the prices are hidden on your catalogue mode plugin so that means the brand thumbnail doesn’t show.

    • This topic was modified 3 years ago by Wayne.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Juan Coronel

    (@juaancmendez)

    Hi there,
    we hope you’re doing well.

    We will comment on you by parts:

    1. In order to achieve this, add this code in the functions.php file of your active theme:

    if ( ! function_exists( 'yith_wcbr_image_size_single_product_brads_custom' ) ) {
        function yith_wcbr_image_size_single_product_brads_custom( $attachment_image, $thumbnail_id ) {
            $single_thumb_width  = 150;
            $single_thumb_height = 150;
            $single_thumb_crop   = false;
            add_image_size( 'yith_wcbr_logo_size_custom', $single_thumb_width, $single_thumb_height, $single_thumb_crop );
            $attachment_image = wp_get_attachment_image( $thumbnail_id, 'yith_wcbr_logo_size_custom' );
            return $attachment_image;
        }
    }
    
    add_filter( 'yith_wcbr_image_size_single_product_brads', 'yith_wcbr_image_size_single_product_brads_custom', 10, 2 );

    You just have to change the values of the variables single_thumb_width, single_thumb_height, single_thumb_crop to your liking. Try it out and tell us if it works well for you.

    2. To better understand what you are saying, could you provide us with the link to your site?

    We will be attentive to your response.

    Best regards.

    Thread Starter Wayne

    (@waynep16)

    1. Thank you, works great for single product, what is the filter name to apply custom size on the [yith_wcbr_brand_thumbnail] shortcode?

    2. Site is in staging still but I think we fixed it.

    Plugin Support Juan Coronel

    (@juaancmendez)

    Hi Wayne,

    The [yith_wcbr_brand_thumbnail] shortcode it’s only available in our premium version. If you have this version, we recommend that you open a support ticket.

    Let us know any news, please.

    Have a nice day.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Brand thumbnail size and conflict with Yith Catalogue mode’ is closed to new replies.