A user running the Refresh theme wants to add custom badges (like “Best Seller”) to product pages in a specific position.
Proposed Solution:
Add tags to products (e.g., Badge-BestSeller, Badge-NewAdded)
Insert Liquid code into snippets/card-product.liquid to check for these tags
Add CSS styling to base.css or a custom CSS file to position and style the badges
Code snippets were provided for both the Liquid template logic and CSS styling, including positioning, colors, and icon support.
Current Status:
The solution isn’t working for the original poster or another user who tried it. Despite following all steps, badges aren’t appearing in preview mode. The issue remains unresolved with no clear diagnosis of what’s preventing the badges from displaying.
Alternative Approach:
Another contributor suggested using Shopify apps instead of custom code, recommending four options (BSS Product Label & Badges, Deco Product labels, BestSeller Product Tag Manager, and Sami Product Labels) with varying features and pricing from free tiers to ~$4-9/month subscriptions.
Summarized with AI on October 27.
AI used: claude-sonnet-4-5-20250929.
I’m using the refresh theme and I’m putting together my product pages and I’d like to add various custom badges to certain products… like this ‘best seller’ example below.
I’ve followed a few videos and blog posts but I’m not getting anywhere. I would like my custom badges to be positioned in the same place as the example below.
{% assign badge_tags = 'Badge-BestSeller,Badge-NewAdded,Badge-50Off,Badge-Clearance' | split: ',' %}
{% for tag in product.tags %}
{% if badge_tags contains tag %}
{% case tag %}
{% when 'Badge-BestSeller' %}
Best Seller
{% when 'Badge-NewAdded' %}
New Added
{% when 'Badge-50Off' %}
50% OFF
{% when 'Badge-Clearance' %}
Clearance
{% endcase %}
{% endif %}
{% endfor %}
Add CSS Styles for Each Badge
Open your CSS file and add the code below
If you need further assistance, please let me know. If you found my help useful, consider liking this message and marking it as the solution.
Best regards
Kaushik