How to move position of sold out badge?

Topic summary

A user wants to reposition the \

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

I would like to move the badge to the top left as shown in the picture.

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.
.card__badge {
    align-self: flex-start !important;
    grid-row: 1 !important;
}

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

This is not working sadly..

Please, try it again. i edit the code. Thanks!

1 Like

Thank you it worked!

But on mobile there is still some space to the top, is it possible to reduce this space?

Hi @KimGottwald ,

Step 1: Go to Shopify Admin β†’ Online Store ->Theme β†’ Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above tag:


Here is result:

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you :heart_eyes:

  • Here is the solution for you @KimGottwald
  • Please follow these steps:

  • Then find the base.css file.
  • Then add the following code at the end of the file and press β€˜Save’ to save it.
.card__badge {
 display: flex !important;
}
  • Here is the result you will achieve:

  • Please press β€˜Like’ and mark it as β€˜Solution’ if you find it helpful. Thank you.