This topic has 9 replies, 2 voices, and was last updated 9 years by Norman.

  • Author
  • #44291
     Norman
    Participant

    I need to change the color of the woocommerce new-badge

    I already found your reply for it under this link, but in my case it doesn’t work
    https://archived.seventhqueen.com/forums/topic/how-to-change-woocommerce-colors-for-new-badge-on-product-image

    i used this code in my child style.css

    COPY CODE
    .woocommerce span.new-badge,
    .woocommerce-page span.new-badge {
    	background: #ff00b4;
    	color: #fff;
    }
    

    any ideas what could be wrong ?

    #44292
     Norman
    Participant

    i used it like this: (no )

    .woocommerce span.new-badge,
    .woocommerce-page span.new-badge {
    background: #ff00b4;
    color: #fff;
    }

    #44293
     sharmstr
    Moderator

    This works for me

    COPY CODE
    
    .woocommerce ul.products li.product .new-badge, .woocommerce-page ul.products li.product .new-badge {
    background: red;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #44294
     Norman
    Participant

    @sharmstr thx- but in my case no effect visible

    #44295
     sharmstr
    Moderator

    try background: red !important;

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #44296
     Norman
    Participant

    @sharmstr still no effect ;(

    #44298
     sharmstr
    Moderator

    Then its has to be a caching issue. I know for sure the code works. I’ve used it on my sites.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #44299
     Norman
    Participant

    ok. will check caching

    #44318
     Norman
    Participant

    can this be because of zlib compression ? or unlikely

    #44320
     Norman
    Participant

    @sharmstr – i confirm your code works

    i had to also reset the CDN cache on my server- not only in wordpress.

    thank you !

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

The forum ‘KLEO’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?