Karla8
June 23, 2024, 6:37pm
1
Hello all,
After checking various tutorial I managed to add a “bundle” badge on the collections page using the following code on card.product.liquid
{% if card_product.tags contains ‘Bundle’ %}
Bundle
{% endif %}
then I tried to change the color with the following code on component-card.css
.badge__Bundle {
background-color: #ff87bd ;
color: #fff ;
}
And of course I tried to move it to the right side without success.
www.hintofhappiness.com
Any input is highly appreciated !
Karla
Moeed
June 23, 2024, 6:41pm
2
Hey @Karla8
Follow these Steps:
Go to Online Store
Edit Code
Find theme.liquid file
Add the following code in the bottom of the file above tag
RESULT:
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Best Regards,
Moeed
1 Like
Karla8
June 23, 2024, 6:45pm
3
that was incredible fast. I’ve been trying for the last few hours haha. thank you so much !
Moeed
June 23, 2024, 6:46pm
4
Thank you for your reply. I’m glad to hear that the solution worked well for you. If you require any more help, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.