Skip to main content
The Category trees card listing two trees, each with its drag handle, title and slug, beside the Add button

Settings > Categories & Taxonomies

Open in TWICE Admin

settings/content/categories-and-taxonomies
Build a tree under Settings → Categories & Taxonomies, then pick the trees your store shows in the theme editor. The result is a shop where shoppers narrow your listings step by step, such as Bikes, then Electric, then Under 20 kg.

Prerequisites

Required permissions: Create and edit collections to build and edit trees, and Edit online store access to pick trees in the theme editor. All four system roles hold both.
Decide the path before you build. Pick the collections, attribute, categories or tags that already group your listings. A tree narrows listings by what they carry, so a listing with no matching tag or attribute never reaches that group.

The walkthrough

1

Create the tree

Select Add under Settings → Categories & Taxonomies. TWICE creates a tree named New category tree and opens its editor.
2

Name the tree and set its slug

In the Details card, enter a Title. Edit the Slug if you want a different address. Shoppers reach the tree at /shop/{slug} on your store.The save fails if another tree already uses the slug.
3

Add a level

In the Levels card, select Add level and choose a source: Collections, Attribute, Categories or Tags. Pick the collections, attribute values or tags the level uses. Leave the Categories level empty to use every category in use.Each level creates one group per value you pick.
4

Add a second level beneath the first

Select Add level again. Each new level divides the groups of the level above, so an audience attribute followed by categories gives every audience and category path. Move a level with the arrows, or remove it with Remove level.
5

Trim the generated groups

Open the Structure card. Expand a group to see what is beneath it. Select Hide this group on any generated group you do not want. Select Show this group to bring it back.
6

Add a group of your own

Select Add group to add a group at the top level, or Add group beneath on a row to add one under it. Choose what it narrows by in Narrows the listings by:Leave Title (optional) empty to use the name of the collection, value, category or tag. A label needs a Label. Select Add group to confirm.
7

Set the order

Choose Alphabetical or Custom in Sort. Drag a group by its handle to place it. Dragging a group before a sibling switches the whole tree to Custom.
8

Save the tree

Select Save. Edits to the title, slug and structure wait until you save.
9

Order your trees

Back on Settings → Categories & Taxonomies, drag the trees into the order the store should show them.
10

Pick the trees the shop shows

Open the theme editor under Sales channels → Online store. Open the Collection page and select Category trees. Pick the trees in Select category trees.The shop pages and the sidebar navigation show the picked trees, in the order set under Settings → Categories & Taxonomies. With nothing picked the shop shows no tree, and /shop returns a 404.
11

Choose how the trees display

Set Display to one of the styles:Compare them in Category tree styles in the shop sidebar.
12

Add the trees to the header

Open Header in the theme editor and select Shop under Navigation items. Set Page to Category trees, type Shop in Label, pick the trees it opens, and set Dropdown to No dropdown, One level or Two levels (mega menu).To add a tree as its own menu item, select Add page link under Navigation items and set the same fields.The header can open any tree, including one the shop does not pick. See Category trees in the header for what each option opens.
13

Save the theme editor

Select Save. The change goes live on your store straight away.
A category tree editor with the Details, Levels and Structure cards, one level built from three collections and the groups it generated

Settings > Categories & Taxonomies > [tree]

The Category trees panel with the Select category trees picker and Display set to Expandable menu

Theme Editor > Collection page > Category trees

The storefront Shop mega menu open, with the trees Shop by activity and Pre-owned each heading a column of groups

Online store > Header > Shop menu

How do I know it worked?

  • The tree appears in the Category trees list with the title and slug you set.
  • The Structure card shows the groups you expect, and each expands to show its groups.
  • Your online store shows the Shop menu or the shop page with your groups at /shop/{slug}.
  • Selecting a group shows only the listings that match every group above it.

Troubleshooting / common pitfalls

The shop shows no tree until you pick one. Open the Collection page in the theme editor, select Category trees, and pick trees in Select category trees. A store with no tree also shows collections.
A page of a tree that only the header names hides the sidebar. Pick the tree in Select category trees on the Collection page to show the sidebar there.
A group with no matching listings is left out of the storefront. Check that the listings carry the tag, attribute value or category the group narrows by, or sit in the collection it uses.
The slug may already be in use by another tree. Change the Slug and save again. A tree also holds at most 500 groups that you add yourself.
The levels produce too many groups, so some are left out. Use fewer levels, or pick fewer values in them. A level takes at most 100 values, and a tree goes six levels deep.
The Hand-picked listings option appears only on a group that already holds listings placed by hand. The editor does not place listings yet. Use a collection or a tag to pick the listings, then use that collection or tag as the group.
Placing a group before a sibling arranges groups by hand, so the tree changes from Alphabetical to Custom. TWICE tells you when it happens. Switch Sort back to Alphabetical to undo it.

Category tree

How a path narrows and why a collection can sit in several trees.

Category tree styles in the shop sidebar

What each Display style shows shoppers.

Category trees in the header

What a tree navigation item opens.

Categories & Taxonomies

The settings view where you list, order and delete trees.

Build a collection

Build the collections a tree uses as groups.

Theme editor: Collection page

The page where tree navigation lives.