Shopify Theme Customization With Sections, Blocks and Code

What the Shopify theme editor can do without code, when Liquid is the right call, and the habits that keep your live store safe while you make changes.
Hands typing on a laptop that shows an online store page, illustrating Shopify theme

Shopify theme customization has never been easier, yet it’s still easy to get wrong. Most of what store owners ask me for, such as a new banner, a different product page layout or an extra block of text, can be handled right inside the theme editor without touching code. The rest needs Liquid, Shopify’s template language, and that’s where live stores get broken.

Below, I explain how sections and blocks work, what the editor can and can’t do, where Shopify’s new AI tools fit in, when a change really needs code, and the habits that stop a live store from turning into a test site. Limits and settings were checked against Shopify’s help center and developer docs on 30 November 2026.

How a modern Shopify theme is put together

Every theme sold in the Shopify Theme Store today is built on Online Store 2.0. Shopify’s help center confirms that older vintage themes aren’t available in the Theme Store anymore, though plenty of stores still run one, and Shopify’s own free vintage themes only get security fixes now.

A 2.0 theme is organized in layers, with each layer answering a specific question:

  • Templates decide the layout for each page type, such as product, collection, page or blog post. You can create alternate templates and assign them to individual products, collections or pages under Theme template in the admin. On a pre-sale clothing store I built, a separate product template let the pre-order items explain their timeline without changing any other product page.
  • Sections are the large pieces of a page, such as an image banner, a featured collection or the main product information. Shopify allows up to 25 sections per template and up to 1,250 blocks across all of them.
  • Blocks are the smaller pieces inside a section, such as a heading, a price, a variant picker or a button. Newer themes, including Shopify’s free Horizon themes, use theme blocks that can sit inside other blocks, up to eight levels deep.

How a Shopify Online Store 2.0 theme is built, a template holds up to 25 sections, sections hold blocks, theme blocks nest up to 8 levels deep, and app blocks sit inside them

Your header and footer operate as section groups, meaning anything you place there, such as an announcement bar, shows up across every page.

To check your theme, open the default product template in the editor. An Add section button under the section list means it’s a 2.0 theme. No button usually means a vintage theme, and most of this article applies only after you move to a newer one.

What the theme editor handles without code

Open it from Online Store, then Edit theme. The sidebar has three views that cover most everyday changes:

  1. The Sections view lets you add, remove, hide and drag sections and blocks. When you’re unsure, hide rather than delete, because a hidden section comes back with one click.
  2. Theme settings hold global colors or color schemes, fonts, page width, buttons, cart style and social links. Set them once instead of styling each section by hand.
  3. App embeds are switches for apps that load store-wide, such as reviews, chat or tracking. Modern apps also offer app blocks, which you place inside sections like any other block.

Theme settings and most sections also have a Custom CSS field. Shopify caps it at 1,500 characters for the whole theme and 500 characters per section. That’s enough for small style fixes and nowhere near enough for a redesign. Custom CSS also can’t use the content property or load files from anywhere but cdn.shopify.com.

Some themes add a Custom Liquid section or block, where a developer can paste a snippet without editing theme files.

There’s AI in the editor now too. Sidekick, Shopify’s assistant, applies changes you describe in plain words, and on Theme Store themes Add block followed by Generate writes a new theme block for you. Shopify warns that generated code may contain errors or miss accessibility and performance best practices, and neither its support team nor the theme developer will troubleshoot it. A generated block is saved as a Liquid file in the theme’s blocks folder, so deleting that file removes it.

I treat AI output like a junior developer’s first draft. It’s useful, but it gets checked before it goes near a live store.

Shopify also announced Canvas on October 1, 2026, a new design workspace where you edit every page of your store visually or through Sidekick. Shopify says Canvas isn’t replacing the theme editor yet. At launch it doesn’t support third-party Theme Store themes, Markets, translations, app blocks or app embeds, and themes edited in Canvas don’t receive theme updates, so try it on a duplicate first.

When a change really needs code

The editor can only do what the theme was built to allow. If the theme developer didn’t include a setting for what you want, no amount of clicking around will make it appear.

Shopify theme editor or code, the editor handles sections, blocks, colors, fonts, alternate templates, app blocks and small Custom CSS fixes, while custom layouts, metafields, logic, theme bugs and speed work need code

These jobs need Liquid, CSS or JavaScript:

  • A layout no section supports, such as a comparison table or a size guide built from product data.
  • Showing information the theme doesn’t expose, like a metafield in a spot where no block accepts it.
  • Logic, such as different content for certain products, tags or customer groups.
  • Fixing a theme bug, or removing code an uninstalled app left behind.
  • Speed work that changes how images, fonts or scripts load.

Whenever code is necessary, I keep my footprint as light as possible. In practice, that means a dedicated section or block file instead of rewriting the theme’s own files, plus a clear log of every file I modify.

One catch before you plan anything. You can’t edit a paid theme’s code or use the AI block generator while the theme is on trial, so buy it first. Careful custom work like this is a core part of my Shopify development service.

Safe habits for Shopify theme customization

Shopify doesn’t give you a traditional staging site like WordPress does, but you can mirror that workflow. This is the staging-first routine I used on the Shopify stores I built and maintained for a UK agency’s clients from 2024 to 2026, and I still use it today.

Duplicate first, then edit the copy

In Online Store, open the actions menu next to your live theme and click Duplicate. The copy appears in your theme library as Copy of plus the theme name. Edit it, and publish it only when it’s right.

Basic, Grow and Advanced stores can hold 20 themes, and Plus stores 100. Once you hit the limit, you have to delete a theme before you can duplicate another, so clear out old copies now and then. Shopify’s guide to duplicating a theme shows the steps on desktop and in the mobile app.

Preview before you publish

Preview the draft on a real phone as well as a narrow browser window. For sign-off, share a preview link. A visitor preview needs no login and expires after 2 days. A merchant preview needs admin access, can reach the checkout and lasts 30 days.

Don’t edit the live theme directly

Editor changes go live the moment you click Save, and once you’ve saved, undo and redo are gone.

Code edits are riskier. The code editor’s Timeline view restores an earlier version of one file at a time, but it can’t bring back a deleted file or roll back the whole theme. Its history is limited, and asset files have no Timeline history at all. Keeping a duplicate theme is your real safety net.

Use version control for bigger projects

For ongoing development, I connect the theme to GitHub with Shopify’s GitHub integration. It syncs both ways. Commits to the connected branch update the theme, and edits saved in the admin are committed back, so every change has a history. The branch has to match Shopify’s standard theme folder structure.

Developers can also run shopify theme dev in Shopify CLI to preview local changes on a development theme, with hot reload for CSS and sections.

Theme updates, and how your changes survive them

When a Theme Store theme gets an update, Shopify adds the new version to your draft themes instead of replacing the live one. Editor work carries over, including settings, layouts, templates, section and block content, and app embeds.

What survives a Shopify theme update, theme editor settings and content carry over, code edits carry over only without conflicts, and themes from outside the Theme Store or edited in Canvas get no updates

Custom code edits only transfer if they don’t clash with the updated files. If they do, the theme card says the code edits couldn’t be included, and someone has to copy them across by hand. Shopify suggests saving a copy of customized code before you update.

That’s the best argument for doing as much as possible in the editor. Settings and blocks survive updates, while every code edit needs re-checking. Themes installed from outside the Theme Store can’t use this update process at all.

When a theme has piled up so many code edits that every update feels risky, a clean rebuild is often cheaper in the long run. My website redesign service covers that work, and my Shopify store redesign guide shows how to do it without losing products, URLs or rankings.

Quick checklist

Run through these steps before and after making any theme change:

  • Confirm a 2.0 theme by looking for Add section on the product template.
  • Duplicate the live theme before every change, however small.
  • Use sections, blocks, theme settings and app blocks before code.
  • Keep Custom CSS for small fixes.
  • Review anything Sidekick or AI block generation writes.
  • Put code in new section or block files, and log each file you change.
  • Preview on a real phone before you publish.
  • Apply theme updates as a draft, then re-check your code edits.

Related reading: what you can change in Shopify checkout and how I set up Shopify Markets to sell internationally.

FAQ

Can I customize a Shopify theme without coding?

Yes, for most everyday changes. On a 2.0 theme you can rebuild pages from sections and blocks, change colors and fonts, and place app blocks. Code is only needed when the theme has no setting for what you want.

Will my customizations stop the theme from updating?

No, updates still arrive in your library as a draft theme. Only conflicting code edits need manual re-entry, which is why keeping custom code minimal and well documented pays off.

Is it safe to use AI-generated blocks?

On a duplicate theme, with a review, yes. Test the block on desktop and mobile, check page speed, and remember you can remove it by deleting its file from the blocks folder.

How do I undo a change to my live theme?

Before saving, use undo in the editor. After saving, publish your backup copy, or restore single files from the code editor’s Timeline view.

Planning changes to your theme and want a second opinion first? Get a free store review and I’ll tell you which changes the editor can handle and which ones need a developer.

Share this article

Shehzad Akram

About the author

Shehzad Akram

Senior WordPress and Shopify developer in Lahore, Pakistan, Top Rated on Upwork with 100% Job Success. I write these notes from real client work: what broke, what fixed it, and what I check every time.

Keep reading

More notes from real client work