Change badge, price color

Solved

Change badge, price color

Antonynex
Explorer
76 3 7

Dear people, i tried to change my discount badge and price colors in the base.css file with the codes in the screenshot. But i wil not change, could someone help me with a solution for this ? 

Thank you Verry Mutch !

20250218_103706.jpg

20250218_103654.jpg

Accepted Solution (1)
Antonynex
Explorer
76 3 7

This is an accepted solution.

It works but how can i change the old price color ? 

20250218_122552.jpg

View solution in original post

Replies 10 (10)

B2Bridge
Excursionist
334 66 82

Hi @Antonynex 
Can you kindly share your store link (with the password, if any) with us? We will check it and suggest you a solution if possible.

B2Bridge: All-in-one B2B wholesale solution, enabling merchants to set up a complete B2B store quickly and without coding.
With features like customizable registration forms, customer segmentation, and tailored price lists, it simplifies wholesale management.
B2Bridge also includes a dedicated Quick Order page and flexible Net Payment Terms, streamlining operations for wholesalers and enhancing the buying experience.

Antonynex
Explorer
76 3 7

Offcourse that is lucky4voeter.nl

Password Temp12

B2Bridge
Excursionist
334 66 82

Hi @Antonynex 

 

I hope you are well. You can follow our instructions below:
1/ Shopify admin > Online store > Edit code
2/ Search for "theme.liquid" file
3/ Open the file and search for </head> tag and add the following code above </head> tag

 

Here is the code for Step 3:

 

 

{% style %}
span.product-price-final{
    color: #0d7310 !important;
}
span.price-badge-sale.badge{
    background-color: #0d7310 !important;
}
{% endstyle %}

 

 

Screenshot_1.png

 If this helpful, please let us know by giving us a like and marking its as a solution. Thanks you 😍

 

B2Bridge: All-in-one B2B wholesale solution, enabling merchants to set up a complete B2B store quickly and without coding.
With features like customizable registration forms, customer segmentation, and tailored price lists, it simplifies wholesale management.
B2Bridge also includes a dedicated Quick Order page and flexible Net Payment Terms, streamlining operations for wholesalers and enhancing the buying experience.

Antonynex
Explorer
76 3 7

It works but only on the product page not in the sections featured products,  the section recommended products, the collection (template) and in the card itself. Is there a way for that so that it shows on those sections to ?

Antonynex
Explorer
76 3 7

The badge does show on those collections  but in the old green i need to change them in the same way and color as on the product page, because your code works fine on the product page only it does not change the colors on the other sections

B2Bridge
Excursionist
334 66 82

Hi @Antonynex 
Can you kindly share the details of your problem (screenshot/ record) with us? We will check it and suggest you a solution if possible.

B2Bridge: All-in-one B2B wholesale solution, enabling merchants to set up a complete B2B store quickly and without coding.
With features like customizable registration forms, customer segmentation, and tailored price lists, it simplifies wholesale management.
B2Bridge also includes a dedicated Quick Order page and flexible Net Payment Terms, streamlining operations for wholesalers and enhancing the buying experience.

Antonynex
Explorer
76 3 7

Offcourse and thank you so Mutch, here are the screenshots on where it does not change the badge and the price color

20250218_121224.jpg

20250218_121319.jpg

B2Bridge
Excursionist
334 66 82

Hi @Antonynex 
using this code

 

{% style %}
span.product-item-price-final{
    color: #000 !important;
}
span.img-badge-sale.badge{
    background-color: #000 !important;
}
{% endstyle %}

 

Screenshot_2.png

 If this helpful, please let us know by giving us a like and marking its as a solution. Thanks you 😍

B2Bridge: All-in-one B2B wholesale solution, enabling merchants to set up a complete B2B store quickly and without coding.
With features like customizable registration forms, customer segmentation, and tailored price lists, it simplifies wholesale management.
B2Bridge also includes a dedicated Quick Order page and flexible Net Payment Terms, streamlining operations for wholesalers and enhancing the buying experience.

Antonynex
Explorer
76 3 7

Should i remove the first code and replace it by this one or should i add this code underneath the first code ?

Antonynex
Explorer
76 3 7

This is an accepted solution.

It works but how can i change the old price color ? 

20250218_122552.jpg