Home Forums Basel support forum How to hide Brand Label on product's image on Homepage

How to hide Brand Label on product's image on Homepage

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #144773

    satatech
    Participant

    Hello XTEMOS,
    We added attribute “BRAND” into Woocommerce, we use this attribute to filter product in product category.
    But in the homepage, if product has Brand, the Brand Text overlap the product image (as in the red circle of the attached image)
    Can I hide these Brand text on the homepage?
    Thanks.
    Hope all the best for you.

    Best regards,

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

    Hello,

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

    body.home .product-label.attribute-label:not(.label-with-img) {
    display:none;
    }

    Best Regards

    #144860

    satatech
    Participant

    Hello Elise, it works very well, thank you a lot.
    Could I ask you more that: is it possible to show the brand text but in a smaller size, because the current brand-text’s size is too big, it overlaps the product images.
    If this is not possible, just ignore this message,
    Thank you a lot.

    Kind regards,

    #144875

    Hello,

    Please replace this code in the Theme Settings > Custom CSS > Global:

    body.home .product-label.attribute-label:not(.label-with-img) {
    font-size:8px
    }

    Change the font-size as per your needs.

    Best Regards

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