> For the complete documentation index, see [llms.txt](https://broadcast.presidiocreative.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://broadcast.presidiocreative.com/broadcast-v5/collections/collection-pages/product-badges-with-metafields.md).

# Product badges with metafields

> Feature introduced in Broadcast 3.2

Broadcast makes adding custom individual product badges or sometimes known as stickers very easy to implement and manage by using metafields.

When utilizing metafields you simply create one metafield to activate the functionality. From there you can add badge text to any of your products and Broadcast will automatically generate a custom badge for that product on collection pages or any section using a product grid.

## How to setup

If your shop is using Broadcast v3.2 or higher, you can easily use this feature. The following quick video shows you how to set up the custom metafield and how to use it with products:

{% embed url="<https://www.loom.com/share/38baabf35d8943edb141dd821f5a514a>" %}
Video walk-through&#x20;
{% endembed %}

## Reference

You can use the following reference information to help with the steps covered in the video.

### Metafield definition

Create a product metafield with the namespace and key set to:

`theme.badge`

Set the content type to Single line text, with one value:

![The Namespace and key must be 'theme.badge'](/files/wJ7KmuVqwv5Xkpksaz2F)

### Product setup

In the Metafields section of any product that you'd like to use the feature. Add a value to the badge field.

This will become your custom badge when displayed in a collection or section that includes a product grid:

![](/files/jKhuCljT2RIWNYnZOI3L)

### Result

When viewing a collection page or section with a product grid-style list, the custom badge is added to the top left corner if the product exists in that listing:

![](/files/9vLqgr7AuTsxc17R6G1K)

Each product can have its own custom badge label.

## Badge colors

Colors are managed in the Theme settings tab under 'Product grid'.

Choose the background color and text color to set for all badges. Sale badges have their own values to help differentiate them from other badges:

![Theme Editor -> Theme settings -> PRODUCT GRID](/files/37GtPvLo7QNTAMVVVAS1)

How to find theme settings:

![](/files/mnW9kQKN5asyZbXFgxo0)

### Brand colors

The data-source option for badge colors allows you to choose colors you've already configured in your brand colors configuration:

![Connect dynamic source](/files/eRbkRNbfN6lBdYkcgl7Y)

![Choose brand colors](/files/42EFmQP4xvSXSRVHjYh5)

Brand colors are configured and managed in the Shopify admin settings under 'Brand':

![Brand color palettes in Shopify admin settings](/files/E4xRS4rmfhGlTvcEiUnt)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://broadcast.presidiocreative.com/broadcast-v5/collections/collection-pages/product-badges-with-metafields.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
