Custom Badge

Topic summary

A user is attempting to add custom badges to products based on their tags but encountering implementation issues.

Current Status:

  • Custom badge code has been added to product-card.liquid file
  • The implementation is not functioning as expected
  • The user suspects there may be an error in the code

Context:

  • The badges are intended to display on products that already have specific tags assigned
  • Store URL provided: milanelo.com
  • Screenshots were shared showing both the desired badge appearance and the code implementation

Issue:
The discussion remains open with no resolution yet provided. The user is seeking help to identify what might be wrong with their code implementation.

Summarized with AI on November 9. AI used: claude-sonnet-4-5-20250929.

I want to add custom Badge according to the tags that the product has, I added the line but it still does not work, I do not know what I have wrong in the code.

yes, this label is already on the products. https://milanelo.com/

In product-card.liquid