Change Font Color of Price for Items with Compare-at Price on Trade Theme

Hi!

I want to update the font color of the price for items that have their Compare-at price filled out/badged with Sale flag on both desktop and mobile. How can I change the font color of Price to #641832 for these items on Trade Theme?

Here is my website.

Thank you!

1 Like

Hi @jordanbford1

TRy this one.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
span.price-item.price-item--sale.price-item--last {
    color: #641832;
}

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!

1 Like

That worked! Thank you so much as always!

@Made4uo-Ribe is there a way to combine this color change and also make that sale Price bolded?

Yes, just add the font-weight or replace the code below.

span.price-item.price-item--sale.price-item--last {
    color: #641832;
    font-weight: 900;
}

And Save.

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!