Skip to content
E-commerce Development

Shopify Theme Sections and Metafields: What Actually Works

Shopify's system for building flexible storefronts with sections merchants can arrange, and metafields that store extra product data.

Marcus Adeyemi Technical Director 2 min read 23 views
Shopify Theme Sections and Metafields: What Actually Works

Why does it matter?

Sections and metafields let merchants change pages without a developer, while keeping structured data in the right place.

What are the numbers?

  • Sections everywhere sections can be added to most template types
  • JSON templates define which sections a template uses
  • Metafields store custom data such as materials or care instructions
  • Metaobjects hold reusable structured content

What should I do?

  1. Store structured product data in metafields
  2. Give merchants sensible section settings
  3. Keep templates consistent across product types
  4. Document metafield definitions
  5. Test theme updates on a copy
What to do and what to avoid with Shopify theme sections and metafields, side by side
Good practice against the usual mistakes, from the sources listed below.

What should I avoid?

Avoid:

  • Hard-coding content into templates
  • Unlimited section settings
  • Undocumented metafields
  • Editing live themes directly

When should I get help?

Short answer Bring in help when merchandising teams need to edit pages themselves.

Where this comes from

The figures and practices above come from the sources listed.

Working on something like this?

We take on E-commerce Development work for teams who want it done once, properly. Tell us what you are building and we will tell you honestly whether we are the right studio for it. Start a project.

Where to go next

Spotted something wrong? Report an error on this page. We correct on the page and say what changed.

All services

The work behind this article, and what it costs.

Marcus Adeyemi

Builds and maintains the web work. Writes about front-end architecture, performance, accessibility and the unglamorous parts of keeping a site alive.

Keep reading

More in E-commerce Development