Change Sale badge placement on collection page in dawn theme
default is on bottom left and i want it on top left
Users are seeking to reposition the sale badge on collection pages in Shopify’s Dawn theme from its default bottom-left location to the top-left corner.
Initial Solution:
base.css file via Theme Editortop: 1rem and left: 1rembottom: unset !important to override default positioningIssue Reported:
Multiple users found the initial solution only moved the badge halfway up rather than fully to the top-left position.
Updated Fix (Dawn 9.0.0):
.card__badge {
display: flex;
flex-wrap: wrap;
left: 1rem;
position: absolute;
top: -9rem;
bottom: unset !important;
}
The adjusted solution uses top: -9rem instead of top: 1rem to properly position the badge at the top-left corner. The negative value appears necessary for correct placement in newer Dawn theme versions.
Change Sale badge placement on collection page in dawn theme
default is on bottom left and i want it on top left
Hello @fostino ,
.card__badge {
bottom: unset !important;
display: flex;
flex-wrap: wrap;
left: 1rem;
position: absolute;
top: 1rem;
}
Thank
@Guleria Thanks ![]()
weirdly enough this solution places the badge only half way up for me and not top left
do you have any idea why?
Here too. It’s only halfway up.
I adjusted the rem: THEME DAWN 9.0.0
.card__badge {
bottom: unset !important;
display: flex;
flex-wrap: wrap;
left: 1rem;
position: absolute;
top: -9rem;
}
I adjusted the rem: THEME DAWN 9.0.0
.card__badge {
bottom: unset !important;
display: flex;
flex-wrap: wrap;
left: 1rem;
position: absolute;
top: -9rem;
}