> For the complete documentation index, see [llms.txt](https://docs.ultramarinastudios.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ultramarinastudios.com/guides/how-to-add-product-badges.md). Agents can also search and read this documentation through its [MCP server](https://docs.ultramarinastudios.com/~gitbook/mcp).

# How to add product badges

<figure><img src="https://3146423938-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZQuVfmt0J7tzTvfBqG6C%2Fuploads%2FeNZhQrPuhD4CYaCgG7eU%2Fimage.png?alt=media&amp;token=200d72de-599a-4d21-837e-64e8e409006a" alt="A series of product grid items, some of the items have badges such as &#x27;Bestseller&#x27; and &#x27;SPF&#x27; overlaying the product image in the top left corner."><figcaption><p>Custom product badges on the Primavera theme's Gloss demo. Here you can see <strong>Bestseller</strong> and <strong>SPF</strong> as custom badges.</p></figcaption></figure>

### Step 1: Enable custom badges in the global settings

* In the customizer, navigate to global Theme Settings > Product Card
* Enable the **Show custom badges** option

### Step 2: Create a custom metafield for the badge content

* Navigate to **Settings > Custom data > Products**
* Select **Add definition**
* Enter a title, e.g. **Badges**
* Click the 'custom.badges' text to unlock the namespace and key field. Under namespace and key, enter `theme.badges`
* Under Select type, choose Single line text&#x20;
* Select List of values
* *Optional*: You can choose to limit to preset choices, e.g. **New**, **Editor's Choice**, etc. This is useful if you want to prevent typos or keep consistent badges.
* When ready, hit **Save**
* Now, for any product you want to add badge(s) to, navigate to the product in the Admin, scroll down the page and add each badge as a new item:

<figure><img src="https://3146423938-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZQuVfmt0J7tzTvfBqG6C%2Fuploads%2FieSFeSY9Ma1ivnP8QdEb%2Fimage.png?alt=media&amp;token=f713572e-11ae-4217-865e-a67ec72d2459" alt="Screenshot of the Shopify admin showing a form field for Badges, a single line text form field. The field value is &#x27;New&#x27;."><figcaption></figcaption></figure>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.ultramarinastudios.com/guides/how-to-add-product-badges.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
