Story theme
Story v1
Story v1
  • Story theme documentation
  • Explore Story
  • Pages
    • Page navigation
    • How to use page templates
      • Story page templates when using a different theme
    • Contact page
    • Lookbook
    • Team
    • Timeline
  • Blogs
    • Blogs
    • Articles
  • Homepage Sections
    • Blog posts
    • Collection list
    • Featured collection
    • Image with text
    • Image with text overlay
    • Logo list
    • Slideshow
    • Featured product
    • Newsletter
    • Map
    • Page
    • Rich text
    • Team
    • Testimonials
    • Text columns with images
    • Timeline
    • Video
  • Collections
    • Collection filtering
    • Product stickers
    • Collection sorting
    • Badges
  • Header
    • Transparent header
    • Promotional announcement bar
    • Mega-menu navigation
    • Drop-down navigation
  • Products
    • Product tabs
    • Product long template
      • Product long template when using a different theme
    • Product image sizes
  • Settings
    • Tile decoration
    • Enable container
  • Updates
    • Story Releases
    • Check your theme version
    • How to download latest version
    • Migrating your settings
  • Tips
    • Where to make CSS changes
    • How to add a line break in your headings
  • Advanced
    • Story tutorials
    • Remove Shopify link in footer
  • Contact
    • Share preview link
Powered by GitBook
On this page
  • How to setup
  • Detailed version
  • Product setup
  1. Collections

Badges

Story 2.0 feature

PreviousCollection sortingNextTransparent header

Last updated 3 years ago

Add custom badges using metafields in Story 2:

Each product can have a custom and unique badge when using metafields.

How to setup

TLDR;

The most important part of setting up this metafield is use the namespace and key of:

theme.badge

See example here:

Detailed version

Start in your Shopify Admin -> Settings and choose Metafields from the left panel and then click on Products:

Choose the Add definition button:

Next, add a Name for the metafield, any name is fine. The namespace and key must be modified. Be sure to change from the default entry:

Change to:

theme.badge

Example:

Add a description and choose Select content type.

Choose Text and then Single line text:

Single line text:

Save your new product metafield. Verify that the metafield is called:

product.metafields.theme.badge

Product setup

The final step is to edit any of your products in the Shopify Admin -> Products and update the new badge metafield. Scroll to the bottom of the product setup page:

Update the Product badge metafield with the custom badge name:

Save your product and preview on any product grid view like Collection pages:

Change the default Namespace and key
Don't skip this step