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!
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025