Tabs and accordions

Organize descriptions, specifications, delivery details and manuals on the product page with tabs and collapsible rows.

Long content stays out of the way until a shopper wants it. Tabs suit a few long sets of content under the gallery. Collapsible row suits short answers in the column beside it, such as delivery and returns.

Which one to use

  • Core, Burrow and Ridge use Tabs under the gallery for the description and specifications, and rows for delivery, returns and warranty.
  • Mantel and Hanger leave the area under the gallery empty, so their photos can run long. All their content goes in rows.

Use rows only if your column has room, because a column full of open rows gets long. To run tabs across the full page instead, see Product details.

Set up a tab or row

Add a Tabs block, then a Tab for each panel. Or add a Collapsible row. Both take the same four kinds of Content.

ContentUse it for
Product descriptionThe description you wrote in your admin
Product metafieldAnything that differs per product, such as specifications or care instructions
TextWords true of every product, such as your returns policy
PageLonger content you keep in one place, shown in full

A tab or row with nothing to show for a product is left out, along with its heading. So you can keep a Specifications tab on the template, and products without specifications skip it.

The Page picker always shows in the panel, because Shopify cannot hide it. It only applies when Content is set to Page.

The templates come with sample wording in the delivery, returns and warranty rows. Replace it with your own terms before you go live.

Content from a metafield

Type the namespace and key into Product metafield, such as custom.specs. The theme draws it according to its type.

Metafield typeShoppers see
Rich textFormatted text
List of single line textA list
Multi-line textText with its line breaks
File, or a list of filesA list of documents to download
JSON in the theme's shapeA specification table
Anything elseWhat Shopify prints for that type

A specification table takes JSON like this, and a group heading shows when there are two or more groups:

[
  { "group": "Sound", "rows": [{ "label": "Drivers", "value": "40 mm dynamic" }] },
  { "group": "Design", "rows": [{ "label": "Weight", "value": "254 g" }] }
]

Specification rows, in the Product information section, draws these tables as Shaded every other row or Lines between rows. The metafields reference lists the keys the templates use.

Tabs settings

Layout on the Tabs block is Underline, a row of tabs, or Toggle, where each tab is a row and one opens at a time. Underline suits a wide area. Toggle suits a narrow one.

A Tab also takes app blocks. To add a Reviews tab, add a Tab, then put your reviews app's block inside it. Not every app offers a block for a Tab. If yours does not, add its section under Product information instead. The theme has no reviews of its own. See Add a reviews app.

Row settings

  • Open at first starts a row open. Use it for one row at most, as Mantel does with its description.
  • Icon adds an icon from the list, and Custom icon takes your own single-color SVG or PNG.
  • Heading style and Open and close mark change the look. Hanger uses Label with Plus and minus.

Rows draw no line under them. Add a Divider block after the last one if you want to close the group.

Something not working?

A tab or row does not appear. The product has no content for it. Check the metafield's key on the block against the key in your admin, including the namespace.

Specifications show as plain text. The metafield's type is not JSON. Change it to JSON and use the example above.

A JSON tab does not appear. Its JSON has a different shape. Use the example above.

All settings: Tabs
SettingWhat it does
LayoutOptions: Underline, Toggle.
All settings: Tab
SettingWhat it does
Tab label
ContentOptions: Text, Product description, Product metafield, Page.
Text
Product metafieldNamespace and key, as custom.specs. Rich text, lists, files and specification tables are drawn by their type. A product without a value leaves this out.
PageShown when Content is set to Page. Shopify cannot hide a page picker.
All settings: Collapsible row
SettingWhat it does
Heading
Heading styleLabel takes the font, case and spacing of Theme settings > Typography > Labels. Options: Body text, Label.
Open and close markOptions: Arrow, Plus and minus.
IconOptions: None, Check mark, Delivery truck, Return, Shield, Badge, Package, Tag, Gift, Map pin, Email, Message, Headset, Star, Lightning bolt, Recycle, Tools, Lock, Document, List, Heart, Paw print, Bone, Feather, Flower, Food, Sofa, Light bulb, Ski, Hiking boot, Tent, Running shoe, Climbing harness, Paddle, Bike, Luggage.
Custom iconOptional. Upload a single-color .svg or .png with a transparent background. It takes the text color of the row and replaces the icon above.
ContentOptions: Text, Product description, Product metafield, Page.
Text
Product metafieldNamespace and key, as custom.specs. Rich text, lists, files and specification tables are drawn by their type. A product without a value leaves this out.
PageShown when Content is set to Page. Shopify cannot hide a page picker.
Open at first

On this page