Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,
    we hope you’re doing well!

    We don’t know exactly why this is happening to you, but you can modify the size of your brand images using the following function that you must add in the function.php file of your active child 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  = 300;
            $single_thumb_height = 300;
            $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.

    We will be attentive to your response.

    Best regards.

    Thread Starter doggieboat

    (@doggieboat)

    OK – thanks.

    But I assume that this will affect ALL brands images? I’ve not got any problems with any others, so I don’t really want to mess them up! If necessary, I can “amend” the errant image to suit the coding above if I change that to a width of 900.

    What do you think?

    Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,

    You can try it, it doesn’t sound bad. I have re-entered your site but now I don’t see any brand image. Have you disabled it? I wanted to try downloading it to see how it looks in my installation.

    Let us know any news, please.

    Best regards.

    Thread Starter doggieboat

    (@doggieboat)

    Thanks Juan –

    I found a slightly different version of the logo, which I am now using. That seems to be better. Not sure why you aren’t seeing it, though.

    Take a look at this product:

    https://www.doggieboat.co.uk/doggie-boat-shop/health-care/dorwest-easy-green/

    If you can’t see it, is there any way I could send a screenprint?

    Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,

    Perfect!

    We don’t know exactly why we can’t see the brand logo. We have checked the HTML and we don’t see anything strange. Here is a link to a screenshot from WeTransfer (you can do the same if you want to send us one):

    https://we.tl/t-tSdpgA1mtd

    Let us know any news, please.

    Have a nice day!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Brand logo not displaying correctly’ is closed to new replies.