Home Forums WoodMart support forum Product Labels color

Product Labels color

Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #51072

    Jarda
    Participant

    Hi.
    I created one own product attribute label. I changed backround and font color for this label: .product-label.attribute-label:not(.label-with-img) {
    background-color: rgba(213, 43, 151, 0.9);
    color: #fff;
    }
    It works fine.

    My question is: If I create multiple values for own label, they will all have the same background color and fonts. How do I set different colors for values of own attribute labels?

    #51115

    Artem Temos
    Keymaster

    Hi,

    Each attribute label has its own unique CSS class and you can use them to change the color. Could you please send us a link to your shop page so we can give you an example of that class?

    Regards

    #51135

    Jarda
    Participant

    Of course. Thanks.

    #51139

    Artem Temos
    Keymaster

    Use this code for example

    .label-term-skladem {
    	background-color: red!important;
    }
    
    .label-term-vyprodej {
    	background-color: green!important;
    }
    #51144

    Jarda
    Participant

    How simple 🙂 Thanks.

    I still have one question for the product details rectangular labels. In Mozilla and Safari browsers, the label on the right is not aligned with the image. After loading, the image moves to the left. Do you see that anyway?

    #51155

    Hello,

    Here is the view from Chrome http://prntscr.com/j1m3d6

    and here is Mozilf view http://prntscr.com/j1m7rr

    All the labels are on the left. Please clarify the issue.

    Best Regards

    #51158

    Jarda
    Participant

    I meant the single product detail page.

    #51163

    Hello,

    I have checked the single product page:

    Chrome http://prntscr.com/j1moeo on the right

    Mozilla http://prntscr.com/j1mo3g on the right

    Best Regards

    #51166

    Jarda
    Participant

    So we see it the same way. The label is not aligned with the image. Not solve it.

    Thank you for great support.

    #51185

    Hello,

    Please inform where did you expect it should be? Take any screen and sign out.

    Try this CSS code:

    .product-image-summary .product-images .labels-rectangular {
        top: 15px;
        left: auto;
        right: 0;
        margin-right: 2px;
    }

    Is it what you need?

    Best Regards

    #51194

    Jarda
    Participant
    #51195

    Jarda
    Participant

    Great, it works.

    Thanks

    #51206

    You are always welcome. If you have any questions feel free to contact us.

    Best Regards

    #113212

    janice_summer
    Participant

    Hi,

    I can’t translate those labels with WPML.
    There is no “string translations” for this.
    How can I translate them, I have three languages ?

    thx

    #113241

    Hello,

    Please provide your site admin access. The site access you provided earlier does not have WPML.

    Best Regards

    #113271

    janice_summer
    Participant

    Hi,

    I provided the admin login (with a changed password in the second post) here:
    https://xtemos.com/forums/topic/urgent-site-crashes-with-500-internal-server-error/

    regards

    #113293

    Hello,

    Try this string please http://prntscr.com/mynffj

    Best Regards

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