F12 Labs
EN
Contact
← All posts

How to add tabs to a Shopify page (and when an accordion is better)

Shopify's page editor has no tabs, and most themes only offer collapsible rows. When tabs are the right choice and when an accordion is, the native routes (HTML, a theme section on a page template) and where they stop, and how to add tabs to any page without theme code.

The Aedify builder with a palette of layout, text, media and product elements on the left, including Accordion and Tabs, and a two-column row on the canvas

You have a page with three things every shopper wants to compare: what's in each plan, how shipping works in each country, which size fits which build. Stacked one under another, the page is long and shoppers scroll past the part they came for. Side by side, in tabs, they click straight to it.

Shopify's page editor doesn't do tabs. Here's how to decide whether you need tabs at all, what you can do natively, and how to add them without editing theme code.

Tabs or an accordion?

Both hide content until a shopper asks for it. They suit different content:

Tabs Accordion
Best for Two to five parallel sections: Details / Shipping / Returns, Men / Women / Kids Many separate answers: an FAQ, a glossary
What shoppers do Switch between sections to compare Scan titles, open the one they need
How many A handful; a tab row gets crowded on phones past three or four Dozens
Several open at once No, one panel at a time Yes, unless you limit it
On a phone The row of tabs has to fit the width Works the same as on desktop

A rule of thumb: if the titles are questions, use an accordion. If they're categories of the same thing, tabs. For an FAQ, see How to make an FAQ page with accordions on Shopify.

And keep anything every shopper needs, such as price, the main call to action or a key policy, outside both.

What Shopify gives you

The page editor

Pages use the rich text editor: paragraphs, headings, lists, links, images, tables and video (Rich text editor). There's no tabs option.

Its HTML view lets you paste your own markup, but tabs aren't a single HTML element the way an accordion (<details>) is. Tabs need markup for the row of titles, markup for the panels, and CSS or JavaScript to show one panel at a time and to make them work with a keyboard. Shopify warns that HTML in the editor "might cause display errors on your storefront" (Rich text editor), and every later edit to the tab content happens in that code.

A theme section on its own template

Some themes have a tabs section; many don't. Shopify's free Dawn theme, for example, has Collapsible content (an accordion) and Collapsible row blocks on the product page, but no tabs section (Dawn's sections on GitHub).

If your theme has one, it goes on a template, not a single page, and "any changes you make to a template impact all the pages that use that template" (Templates). So each page with its own tabs needs its own template: create it in the theme editor, add the section, then pick the template under Theme template when you edit the page in Online Store → Pages. The content then lives in the theme, not the page, and stays behind if you change themes.

Writing the tab content into each section

Even with a tabs section, what goes in a tab is usually a block of formatted text. A size chart image beside the text, a button, or a row of products in the "Kids" tab generally isn't part of it.

What you're missing

Put together, what the page editor lacks is tabs you add to a page itself: built visually, styled by your theme, holding any content, and saved with the page.

Adding tabs with Aedify

That's what Aedify, our page builder, does. Aedify pages are ordinary Shopify pages, and Tabs is one of its elements.

  • Drag in Tabs. A new Tabs element starts with Details, Shipping and Returns. Click a tab to rename it and fill it in; + at the end of the row adds another, up to 10.
  • Anything in a tab. Each tab holds rows and elements like the rest of the page: text, images, buttons, video, a two-column layout, a live product grid.
  • Start from a template. Under Insert template, Product info tabs adds Details, Shipping, Returns and Reviews ready to fill in, and Shop by category adds tabs with an image, offer and button each.
  • Across the top or down the side. Tabs down the left (vertical) puts the titles in a column beside the panel. On phones and in narrow rows they move back across the top, where there's room.
  • Choose the tab that opens first with Tab shown first, for example Shipping on a delivery page.
  • No script. The tabs are built from standard HTML and CSS. Shoppers move into the tab row with Tab and switch tabs with the arrow keys, and screen readers announce each tab and its position, such as "Shipping, 2 of 3".
  • Checked for accessibility. Aedify's accessibility check flags a tab with no title as an error, since the title is what shoppers click.

The same element works in product and collection descriptions, for a size guide or care instructions under a product. See Product and collection descriptions.

Setting it up

  1. Install Aedify and run through Storefront setup. The Aedify styles embed is what shows one tab at a time and styles the tab row.
  2. Click Create → Page, give it a title, and click Create and open builder. Or open an existing page: Aedify can edit pages made in Shopify's editor too.
  3. Drag Tabs from the palette onto the page, or click Insert template and pick Product info tabs.
  4. Rename the tabs, add content to each, tick Visible on storefront, and save.
  5. Open the page on your store and click through the tabs, on a phone too.

Every setting is in Accordion and tabs.

If you remove the app

The page and everything in its tabs stay in Shopify. Without Aedify's styles, though, tabs can't show one panel at a time: every panel shows, one after another, under a row of plain radio buttons with the tab titles. Accordions keep opening and closing. If a page with tabs matters to you and you're leaving, switch it to an accordion first. See Uninstalling.

Tips for tabs that work

  • One or two words per title. "Shipping", not "Shipping and delivery information". Long titles wrap or crowd the row on phones.
  • Keep the sections parallel. Tabs read as "the same kind of thing, pick one". A tab that's really an FAQ belongs in an accordion.
  • Three to five tabs. More than that and shoppers stop clicking. Move the extras to their own page and link to it.
  • Open the useful one. If most visitors come for shipping, make Shipping the tab shown first.
  • Don't hide the key fact. Price, delivery cut-off or a final-sale warning shouldn't depend on a shopper clicking the right tab.

Shopify behavior checked on 26 November 2026 against Shopify's documentation: Rich text editor and Templates; Dawn's sections from its source on GitHub.