Home Forums WoodMart support forum Attribute Label Colors

Attribute Label Colors

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #232705

    jacknowles
    Participant

    I have added an attribute to one of my products as I wish to display it as a label. I am struggling to change the label colour though. I have used both of the following codes in an attempt to change colour with neither being successful:

    .attribute-label.sold-as-pair {
    background-color: #ffc801;
    color: #ffffff;
    font-weight: 900;
    }

    .product-label.sold-as-pair {
    background-color: #ffc801;
    color: #ffffff;
    font-weight: 900;
    }

    Can anyone point me in the right direction? Thanks

    #232752

    Hello,

    Thank you very much for choosing our theme and for contacting us.

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

    /*hot*/
    body .labels-rectangular .featured {
    color:#ffffff;
    background-color:#000000;
    font-size:12px;
    }
    /*new*/
    body .labels-rectangular .new{
    color:#ffffff;
    background-color:#000000;
    font-size:12px;
    }
    /*sales*/ 
    body .labels-rectangular .onsale { 
    color:#ffffff; 
    background-color:#000000; 
    font-size:12px; 
    }

    If you have a rectangular attribute replace “rounded” with “rectangular”

    Best Regards

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