Department metafields
You only need these if a collection is missing from the menu and you still want a trail and a child list.
Create each field once. Then fill it on each collection.
Create the fields
- In Shopify admin, click Settings.
- Click Custom data.
- Click Collections.
- Click Add definition.
Add these three. Use the namespace and key exactly.
| Name you can show | Namespace and key | Type |
|---|---|---|
| Parent | custom.fg_parent | Collection |
| Children | custom.fg_children | List of collections |
| Realm | custom.fg_realm | Single line text |
- Click Save after each one.
Fill them
- Click Products, then Collections.
- Open a collection.
- Scroll to Metafields.
- Parent: choose the collection above this one.
- Children: choose the collections under this one.
- Realm: type a short word the theme already knows, such as
home,kitchen,toys,beauty,garden, orfood. This picks the built-in drawing when you have not uploaded an icon. - Click Save.
The menu wins when the same collection is also in the menu. Fill the metafields anyway so the trail still works if a menu link is removed.