Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello,
How can set the discount .badge top on the product image,
both collect and product page,
I have
Solved! Go to the solution
This is an accepted solution.
Hi @Sohan2198
check this one.
From you Admin page, go to Online Store > Themes
Select the theme you want to edit
Under the Asset folder, open the main.css(base.css, style.css or theme.css)
Then place the code below at the very bottom of the file.
.card__inner .card__badge {
align-self: flex-start;
grid-row-start: 1;
justify-self: flex-start;
}
And save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Hi,
You need to use css, maybe you need to change from bottom: 0; to top: 0;
This is an accepted solution.
Hi @Sohan2198
check this one.
From you Admin page, go to Online Store > Themes
Select the theme you want to edit
Under the Asset folder, open the main.css(base.css, style.css or theme.css)
Then place the code below at the very bottom of the file.
.card__inner .card__badge {
align-self: flex-start;
grid-row-start: 1;
justify-self: flex-start;
}
And save.
Result:
Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025