New Shopify Certification now available: Liquid Storefronts for Theme Developers

Change Sale badge placement on collection page in dawn theme

Solved
fostino
Excursionist
16 1 11

Change Sale badge placement on collection page in dawn theme

default is on bottom left and i want it on top left

Accepted Solution (1)
Guleria
Shopify Partner
2787 555 795

This is an accepted solution.

Hello @fostino,

1. Go to Online Store->Theme->Edit code
2. Asset->base.css-> paste bellow code in bottom of file

.card__badge {
    bottom: unset !important;
    display: flex;
    flex-wrap: wrap;
    left: 1rem;
    position: absolute;
    top: 1rem;
}

Thank

-

Need a Shopify developer? Email: guleriathakur43@gmail.com

,
- Skype: navrocks1
- Try GEMPAGES a great page builder
-Advance Search Filter

View solution in original post

Replies 6 (6)
Guleria
Shopify Partner
2787 555 795

This is an accepted solution.

Hello @fostino,

1. Go to Online Store->Theme->Edit code
2. Asset->base.css-> paste bellow code in bottom of file

.card__badge {
    bottom: unset !important;
    display: flex;
    flex-wrap: wrap;
    left: 1rem;
    position: absolute;
    top: 1rem;
}

Thank

-

Need a Shopify developer? Email: guleriathakur43@gmail.com

,
- Skype: navrocks1
- Try GEMPAGES a great page builder
-Advance Search Filter
fostino
Excursionist
16 1 11

@Guleria Thanks 🙂

olaas
Visitor
2 0 1

weirdly enough this solution places the badge only half way up for me and not top left 😕 do you have any idea why?Skärmavbild 2022-10-28 kl. 10.50.23.png

gabrielcoliveir
Visitor
1 0 0

Here too. It's only halfway up.

besesrafa
Visitor
2 0 0

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;
}

besesrafa
Visitor
2 0 0

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;
}