Does someone know how to change the design of price when a product is on sale?

Topic summary

A user wants to change the sale price color to red on their Shopify store using the Trade theme.

Troubleshooting Steps Attempted:

  • Initial guidance suggested locating ‘main-collection-product-grid.liquid’ in the Sections folder and finding the markup for the price element
  • User couldn’t locate the specified code in that file
  • Alternative suggestion to search in ‘card-product.liquid’ file within the snippets folder
  • First CSS solution provided: adding code to ‘component-card.css’ in the Assets folder targeting .price__sale classes - this didn’t work

Working Solution:
Another user provided CSS code to be added at the bottom of main.css (or base.css/style.css/theme.css) in the Assets folder:

.price-item.price-item--sale.price-item--last {
  color: red;
}

This solution was marked as resolved. The discussion includes screenshots showing the theme’s file structure and the desired result with red sale prices.

Summarized with AI on November 8. AI used: claude-sonnet-4-5-20250929.

I would like to make the “new price” in the color red. Is this possible?

Thank you!

URL: https://suq5b8csct01fyzg-61270851797.shopifypreview.com/collections/rappid-test?sort_by=price-descending

Im using the Trade theme.

Picture:

Bildschirmfoto 2024-07-12 um 10.05.35 PM.png

1 Like

Could you please navigate to your theme’s code and within the ‘Sections’ folder, locate the file named ‘main-collection-product-grid.liquid’ or a similarly named file. In that file, find the


element. Once you have located it, please provide an image of the code for that element so that we can assist you further.

Sadly I can’t find that part of the code:

Click Ctrl + F and then search for “card__information”(double underscore)

Try searching for it in the file ‘card-product.liquid’ which is located in the snippets folder

Like this?

In your theme’s code locate inside the Assets folder the file ‘component-card.css’. At the bottom of the file paste this code

.price__sale .price-item .price-item--sale .price-item--last{
    .color: red;
}

Hope this helps!

This is not working sadly, but thank you!

Hi @KimGottwald

check this one.

  1. From you Admin page, go to Online Store > Themes
  2. Select the theme you want to edit
  3. Under the Asset folder, open the main.css(base.css, style.css or theme.css)
  4. Then place the code below at the very bottom of the file.
span.price-item.price-item--sale.price-item--last {
    color: red;
}

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

1 Like

Corrected Version

.price-item--sale{
   color: red;
}