Change design of sold out badge on product page?

Topic summary

A user seeks to modify the appearance of the “sold out” badge on their Shopify product page using the Trade theme.

Solution Provided:

  • Navigate to Online Store > Themes in the Shopify Admin
  • Select the active theme and locate the Asset folder
  • Open the main CSS file (main.css, base.css, style.css, or theme.css)
  • Add custom CSS code at the bottom of the file targeting span.badge.price__badge-sold-out

CSS Customization:
The provided code snippet modifies the badge styling with properties including border-radius (2px), background color (light gray), and text color (dark slate gray).

The solution includes a visual result screenshot showing the updated badge design. The responder requests marking the post as a solution if helpful.

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

I would like to change the design of the sold out bade on the product page.

Thank you!

URL: https://suq5b8csct01fyzg-61270851797.shopifypreview.com/collections/rappid-test

Im using the Trade theme.

1 Like

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.badge.price__badge-sold-out.color-scheme-3 {
     border-radius: 2px !important;
    background: lightgray;
    color: darkslategray;
}

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