Appearance
Product cards β
Badges β
Custom badges β
To add custom badges to your products
In your Shopify admin, go to Products
Click the product you want to edit
In the Tags section, add a tag using this format:
badge:nameExample:
badge:Bestsellerbadge:super coolbadge:PopularIMPORTANT
You must use the exact format above, otherwise, the badge won't be applied.
Press Enter to add the tag
NOTE
You can add multiple badge tags, but use them in moderation, too many will clutter your product card.
IMPORTANT
Custom badges cannot be translated.
Style badges β
If you want a specific product badge to use different colors, you can do that with CSS.
Built-in badges β
To change the text color of the Sale badge:
css
product-card .product-badge.sale { color: red }To change both the background and text color:
css
product-card .product-badge.sale { background: red; color: white; border-color: red; padding: 0.2em; }You can use the same pattern for other badge types, such as: .product-badge.preorder product-badge.new product-badge.soldout
Custom badges β
If you created a custom badge with a product tag like: badge:Coming soon
you can target that exact badge using its data-badge value:
css
product-card .product-badge.custom[data-badge="Coming soon"] { color: red }You can also change the full badge style:
css
product-card .product-badge.custom[data-badge="Coming soon"] { background: red; color: white; border-color: red; padding: 0.2em }TIP
When styling badges, itβs usually best to set all three together for a consistent result: background color border-color
Featured product β
This feature lets you highlight a product and make it stand out by giving it more space in the grid. To use it, you need to create a product metafield and assign it to the product you want to feature.
1. Create Metafield β
- In your Shopify admin, go to Settings β Custom data
- Click Products.
- Click Add definition
- Set the following:
- Name:
Featured product - Namespace and key:
openthinking.featured_product - Type: Select True or false
- Name:
- Click Save
2. Add Metafield to Product β
- Go to Products
- Click the product you want to highlight
- Scroll down to the Metafields section
- Find Featured product
- Check the box (set it to True)
- Click Save
The product will now appear as a featured item in the grid.
CAUTION
Improper use of this feature can break the grid layout.
- Do not apply it to the wrong products.
- Do not place two featured products next to each other.
- Avoid using it too frequently in the same collection.
WARNING
Solely you are responsible for using this feature correctly. Any layout issues caused by misuse are your responsibility.
TIP
If you experience layout issues, simply uncheck or disable the metafield on the affected product.