Home Forums WoodMart support forum Brand logo size

Brand logo size

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #376915

    Inzman
    Participant

    Hello.
    How to filter brand logo size (in single product view at least)?
    For example, the area is only 90px wide, no reason to show full size image here: https://eriart.ee/pood/epoksiidvaik-resinest/

    Attachments:
    You must be logged in to view attached files.
    #377006

    Hello,

    Please add this code to the Theme Settings > Custom CSS > Global:

    .wd-product-brands {
    width:200px;
    }

    You can change 200px as per your needs.

    Best Regards

    #377079

    Inzman
    Participant

    Not talking about Css, I mentioned how to “filter”.
    In woodmart/inc/integrations/woocommerce/modules/brands.php, “wp_get_attachment_image_url” is used for image source. It uses size “full”, therefore for example, 10000×10000 pixels image can be used in a place of 90px image.

    • This reply was modified 1 year, 11 months ago by Inzman.
    #377363

    Hello,

    Please check this manual: https://xtemos.com/docs-topic/product-brands/

    If you have any questions please feel free to contact us.

    Best Regards

    #377387

    Inzman
    Participant

    I’m sorry, but the question is about something else…
    This size should be filterable, please add it to your next version at least!
    It is not okay when a full-size image is shown in a place of a tiny thumbnail. It is a matter of page loading time and speed.

    #377611

    Hello,

    Unfortunately, there is no such filter, you can copy this function: woodmart_product_brand() into the functions.php of the child theme and edit the size.

    Best Regards

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)