Configuration
Settings Configuration
Configure your labels insettings.json. Each label has a name, text color, and background color:
Template Implementation
Add this code to yourtheme.liquid to display labels on products. The code checks for matching tags and applies the configured styling:
How It Works
- Add tags to your products (e.g., “new”, “trending”, “bestseller”) - These tags should match the label names in your settings
- Labels will automatically appear on products with matching tags - The system checks product tags against configured label names
- Each product shows max 2 labels (configurable via
maxLabelsCount) - Adjust this number in settings to show more or fewer labels - Labels use the colors defined in settings - Each label type has its own text and background colors
- Supports translations through the
translationsobject - Use translations to display labels in different languages