Home Forums WoodMart support forum Brand Icons in Shop

Brand Icons in Shop

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

    DELAYON
    Participant

    Hi there!

    Is there a possibility to move the brand icons on the product picture? We’d like to move the icons (only icons, not the sale or new tags) to the bottom of the image and display them horizontally.
    Currently the icons are blocking the clear view on our products.
    thanks in advance!

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

    Hung Pham
    Keymaster

    Hi DELAYON,

    Thanks for your patience.

    In order to place attribute icons bottom as shown in the screenshot https://prnt.sc/QmIH8LJC6cHz You can add below Custom CSS code to Theme Settings > Custom CSS > Global custom CSS

    .product-grid-item .product-labels {
    	bottom: 15px;
    }
    
    .product-grid-item .product-labels :is(.onsale, .new, .featured, .out-of-stock) + .attribute-label {
    	margin-top: auto;
    }

    But I can’t place them horizontally since they share a same wrapper, and changing that HTML structure is impossible with the use of simple custom CSS code.

    Regards,

    #502233

    DELAYON
    Participant

    Awesome thanks!

    What do i need to add to the product-labels :is(.onsale, .new, .featured, .out-of-stock) to have it work for all products even without labels? Just to make sure it looks equal 🙂

    #502384

    Hung Pham
    Keymaster

    Hi DELAYON,

    Above code works when product has one of these badges, in order to make it works with all products even without these badges, you can add below Custom CSS code to Theme Settings > Custom CSS > Global custom CSS

    .product-grid-item:not(.sale,.featured, .out-of-stock) .product-labels{
    	top: auto;
    	bottom: 15px;
    }
    
    .product-grid-item .product-labels:has(span.new){
    	top: 15px !important;
    }

    Regards,

    #502775

    DELAYON
    Participant

    Hi there!

    Thanks for the response.
    Currently it’s showing all brand labels the same as it did with the first code. I copied my global CSS in the field below. Not sure if this might have any influence…

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

    Hung Pham
    Keymaster

    Hi DELAYON,

    I tested and it worked well on my end https://prnt.sc/8rASd2D_Nmc9

    Please remove all Custom CSS and try below one.

    .product-grid-item .product-labels {
    	bottom: 15px;
    }
    
    .product-grid-item .product-labels :is(.onsale, .new, .featured, .out-of-stock) + .attribute-label {
    	margin-top: auto;
    }
    
    .product-grid-item:not(.sale,.featured, .out-of-stock) .product-labels{
    	top: auto;
    }
    
    .product-grid-item .product-labels:has(span.new){
    	top: 15px;
    }

    Regards,

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