Shopify themes, liquid, logos, and UX
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' %}
<span class="badge badge__Bundle">Bundle</span>
{% 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.
Any input is highly appreciated !
Karla
Solved! Go to the solution
This is an accepted solution.
Hey @Karla8
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag
<style>
span.badge.badge__Bundle {
background: #ff87bd !important;
border-color: #ff87bd !important;
}
.card__badge {
justify-self: flex-end !important;
}
</style>
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
This is an accepted solution.
Hey @Karla8
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag
<style>
span.badge.badge__Bundle {
background: #ff87bd !important;
border-color: #ff87bd !important;
}
.card__badge {
justify-self: flex-end !important;
}
</style>
RESULT:
If I managed to help you then, don't forget to Like it and Mark it as Solution!
Best Regards,
Moeed
that was incredible fast. I've been trying for the last few hours haha. thank you so much !
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.
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