Be Yours supports adding custom labels to your product cards, which you'd see on your collection pages or featured collection section.
Once set, each product will have one or many labels. All labels of a product have the same background color, which can be customized.
This feature is working based on metafields. So, all you have to do is to add metafield definitions, then set the labels for the products you want.
On this page
Requirements
- Be Yours 4.0.0 or later
Adding metafield definitions
Before you can add custom labels (metafield values) to specific products, you need to add the necessary metafield definitions for this information.
- From your Shopify admin, go to Settings > Metafields > Products
- Click Add definition
- In the Name field, enter
Product label
, and then click the 'Product label' generated as you type from the list. This is the metafied used for storing the label text, something like "New", "Coming soon"... - In the Namespace and key field, enter
theme.label
- Click Select content type then select Text
- Select Single line text then check Accept list of values. By using list of values, you have ability to add multiple labels for a product.
- Click Save to save the definition
- You should see the Product label in the list of definitions by now.
- Now, we need to add another definition for storing the background color of the label. Click Add definition again.
- In the Name field, enter
Product label color
- In the Namespace and key field, enter
theme.label_color
- Click Select content type then select Color
- Click Save to save the definition
- You should see the Product label color in the list of definitions by now.
Setting the labels and background color
- In your admin, within Products, click on the product you want to add the labels
- Scroll down to the Metafields, then click Show all to open the metafield values of the product
- You should see the Product label and Product label color here
- To set labels, click on the Product label field. Enter your label in the default text box. For example, in the screenshot below, 'New' is my label. If you want to add multiple lables, just click Add item to add another text box then enter the value you want
- To set the background color of the labels, click on the Product label color field then pick the color you want.
- Click Save to save your changes
Need Further Assistance
If you encounter any issues or need additional help with your Be Yours theme, don't hesitate to reach out to Roartheme's support team for expert guidance.
Scan the QR code to get support within 8 hours via RoarTheme ’s Whatsapp