Skip to main content

Configuration

Settings Configuration

Configure your labels in settings.json. Each label has a name, text color, and background color:

Template Implementation

Add this code to your theme.liquid to display labels on products. The code checks for matching tags and applies the configured styling:

How It Works

  1. Add tags to your products (e.g., “new”, “trending”, “bestseller”) - These tags should match the label names in your settings
  2. Labels will automatically appear on products with matching tags - The system checks product tags against configured label names
  3. Each product shows max 2 labels (configurable via maxLabelsCount) - Adjust this number in settings to show more or fewer labels
  4. Labels use the colors defined in settings - Each label type has its own text and background colors
  5. Supports translations through the translations object - Use translations to display labels in different languages

Support

Need help with labels? Contact support@glood.ai