Move badges above images and keep them on left

Topic summary

A Dawn theme user wants to reposition sale and out-of-stock badges to appear above product images instead of overlaying them.

Initial Solutions Provided:

  • First suggestion: Add CSS to base.css or theme.css with position: absolute and top: -20px targeting .collection.card__badge.top.left
  • Alternative approach: Use Theme Customizer’s Custom CSS section with top: -20% for screens under 550px width

Current Status:
The initial code attempts didn’t achieve the desired result—badges remain on top of product images rather than positioned above them. A refined CSS solution was offered using:

  • left: 50% with transform: translateX(-50%) for centering
  • top: -23% to move badges further above the image
  • Media query targeting screens max-width 550px

The discussion remains ongoing as the user seeks the exact positioning shown in their reference screenshot. The solution involves CSS customization through either the theme’s stylesheet files or the built-in Custom CSS section in Theme Settings.

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

I want the sale and out-of-stock badge to show above the product images/in the spot I circled. I’m on the dawn theme.

1 Like

Hi @takeoverapparel

Please, share your store URL with password. Thanks!

www.takeoverapparel.com website password is takeover

Thanks for the info, 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:
@media only screen and (max-width: 550px){
.collection .card__badge.top.left {
    position: absolute;
    top: -20px;
}
}

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

Hi @takeoverapparel

You can move badge above image by following this instruction:

  1. Go to Shopify > Theme > Customize

  2. Copy and paste this code on Theme settings > Custom CSS section

@media screen and (max-width: 550px{
.card__badge {
    top: -20% !important;
}
}

here is the result :

that code didn’t work its still on top of the product. I want it up above

Hi @takeoverapparel

You can try to paste this code below to the custom CSS section:

@media screen and (max-width: 550px){
.card__badge.top.left {
    left: 50% !important;
    transform: translateX(-50%);
    top: -23% !important;
}
}