BlogShopify development

Shopify Theme Customization: A Safe Workflow and Review Checklist

To customize a Shopify theme safely, use the theme editor first, do code work on a copy, run Theme Check and a review checklist, then publish with the old theme kept for rollback. This guide covers each step and what to do when a theme won't stretch far enough.

Work with Ecompanda
Copy as MarkdownSet as Preferred Source
Two matching website wireframes drawn in green line art on paper, one a faint copy, joined by a small branching line, with the edge of a laptop in the corner.

Theme customization in brief

Generated by Ecompanda AI

Customize a Shopify theme in the theme editor first and keep any code work on a duplicate or development theme. Check the draft with Theme Check and a review checklist, then publish and keep the old theme as your rollback.

  • Theme editor changes carry over to theme updates; code edits only when they don't conflict
  • Duplicate the theme or use a Shopify CLI development theme before touching code
  • Keep custom code in its own files and track it in Git
  • Run Theme Check and a review checklist on the draft before you publish
  • When a theme keeps fighting you, add a section, use an app block or change theme

To customize a Shopify theme safely, make as many changes as you can in the theme editor: theme settings, sections, blocks and app blocks. Do any code work on a duplicate or a development theme, never on the live one. Then run Theme Check, go through a review checklist on the draft, and publish, keeping the old theme as your way back.

This guide is for store owners who want to know what careful theme work looks like, and for developers who want a checklist. If you're on Dawn, our Dawn customization guide has the theme-specific steps.

Shopify theme customization in six steps

  1. Try the theme editor first. Theme settings, sections, blocks and app blocks.
  2. Work on a copy. Duplicate the theme, or use a development theme for code.
  3. Keep code in your own files, tracked in Git.
  4. Run Theme Check to catch Liquid and JSON errors.
  5. Go through the review checklist on the draft theme.
  6. Publish and keep the old theme as your rollback.
A flow chart. A change is requested. Can a setting, section or app block do it? Yes: use the theme editor on a duplicate draft theme. No: write code on a copy, in a Git branch, in your own files. Both paths lead to Check (Theme Check and previews), then the QA checklist, then Publish, where the old theme moves to Draft themes. Finally either write it in the change log, or republish the old theme and fix on the copy.
The workflow from request to rollback: editor first, code on a copy, check, then publish.

Step 1: Use the theme editor before code

Most Shopify customisation needs no code at all. Open the editor from Online Store, then Themes, then Customize on the theme you want to change.

Before anyone opens the code editor, go down this list:

  1. Theme settings. Colors, fonts, logo, header and footer options. Developers define them in config/settings_schema.json, and the values you save are stored in config/settings_data.json (shopify.dev).
  2. Sections and blocks. Add, reorder or hide them on each template. Our sections and blocks guide explains what your theme allows.
  3. App blocks and app embeds. If an app already does the job, place its block in the editor.
  4. Only then, code.

The order matters because of updates. When you update a theme, anything you changed in the theme editor is copied across, but code edits come along only if they don't conflict (updating themes). That's why Shopify's page on editing theme code says to edit code only when an app or the theme editor can't do the job.

One more catch on paid Theme Store themes: you can edit the code only after you've bought the theme. That includes the AI code generator in the theme editor.

Step 2: Work on a copy, never the live theme

Editing the live theme means every mistake shows to customers straight away. A copy costs nothing.

Duplicate the theme

In the admin, go to Online Store, open the theme's actions menu and choose Duplicate. The copy appears as "Copy of" plus the theme name. Rename it straight away, because "Copy of Dawn" means nothing once you have four of them.

What to know, from Shopify's page on duplicating themes:

  • You can have up to 20 themes in the admin. At 20, you must delete one before you can duplicate, and deleting is permanent.
  • A theme download doesn't include your products, collections, menus, pages, blog posts, images or other files. It backs up the theme, not the store.

Use a development theme for code

For code, work on your own machine with Shopify CLI. Running shopify theme dev uploads your local files as a development theme: a temporary, hidden theme that uses your store's real data.

Development themes don't count toward the 20-theme limit. They hot reload CSS and section changes as you save. And the command gives you a theme editor link plus a preview link you can share with other developers.

There are limits. Shopify deletes a development theme after seven days of inactivity, or when you run shopify auth logout. The theme dev reference says you can't preview checkout customizations at the local address, http://127.0.0.1:9292. And Shopify's tutorial for customizing a merchant theme says that local preview works in Google Chrome only.

If you're working on a client's store, ask for collaborator access with the Themes permission, as that tutorial recommends.

Shopify's reference page for the theme dev command, describing the local preview address, the editor link, the preview link, and a note that checkout customizations can't be previewed at the local address.
The theme dev reference: a local preview, an editor link and a shareable preview link.

Step 3: Keep custom code in your own files, in Git

Add files rather than editing the theme's

Every line you change inside a theme file can clash with the next update. A file you add is one the update leaves alone. So:

  • Put new markup in a new snippet and call it with one render line.
  • Put new styles in a new asset with a prefix you own, such as ec-.
  • Comment the one line you add to an original file, so the next developer can find it.

The one line added to sections/header.liquid:

{%- comment -%} ec: shipping note, see snippets/ec-announcement.liquid {%- endcomment -%}
{% render 'ec-announcement' %}

The new snippet, which says why it exists and how to remove it:

{%- comment -%}
  snippets/ec-announcement.liquid
  Reason: shipping note under the header.
  To remove: delete this file and the render line in sections/header.liquid.
{%- endcomment -%}
<p class="ec-announcement">Your shipping note goes here.</p>

And one line in layout/theme.liquid loads a stylesheet that is yours alone:

{{ 'ec-custom.css' | asset_url | stylesheet_tag }}

For the CSS itself, see how to add custom CSS to Shopify.

This pays off at update time. A Theme Store update arrives as a draft named "Updated copy of", and the Help Center says to check that the selectors your custom CSS targets still exist. If your code edits couldn't be merged, the theme card says so and you copy them across yourself. With separate files, that's a short job.

Apps: blocks, not pasted code

Per the Help Center page on extending your theme with apps, apps reach your theme as an app block inside a section, as an app embed that floats or loads in the background, or as code injected into your theme files. Prefer the first two. Shopify's developer docs say theme app extensions don't edit theme code, which lowers the risk of breaking changes.

  • If an app tells you to paste code into theme.liquid, ask the developer whether a block exists first.
  • App blocks need a compatible theme, which means Online Store 2.0 or later.
  • Apps don't follow you to a new theme. You re-activate each one after you switch.

When you remove an app that injected code, search all files in the code editor for the app's name and clear out what's left.

Version control with the GitHub integration

Version control answers the two questions that cost hours after something breaks: what changed, and who changed it. The Shopify GitHub integration connects a theme to a branch. It updates the theme when the branch changes, and commits admin edits back to the branch.

The top of Shopify's documentation page for the GitHub integration for themes, listing its features and a note that files are updated in GitHub whenever a connected theme changes.
Shopify's GitHub integration page: admin edits are committed to the connected branch, and that can't be turned off.

Know these before you connect:

  • Admin edits become commits. Saves in the theme editor and code editor are committed by Shopify. Saves within about 10 seconds of each other are batched, and the commit names whoever saved last. You can't turn this off.
  • The branch must look like a theme. Only branches with the default theme folder structure connect: assets, blocks, config, layout, locales, sections, snippets, templates. Other folders are ignored.
  • A disconnected branch can't be reconnected. Connect it again and you get a new theme.
  • The code editor has no conflict alerts. Its version of a file overwrites the GitHub version. If a theme falls behind its branch, use Actions, then Reset to last commit, on the theme card.

To connect, go to Online Store, then Themes, then Add theme, then Connect from GitHub, and pick the repository and branch. Then test it. Change a setting, save, and check the branch for a new commit from the shopify bot.

For branches, Shopify's version control guidance suggests connecting your main branch and publishing that theme, so the live store matches main. For a sale, use another branch, publish its theme for the event, then republish main's theme. If you have a build step, connect a separate deploy branch that holds only the compiled theme.

A Shopify CLI session, start to finish

For a code change on an existing store, this is the sequence we'd use. Pull a copy of a theme you pick from a list, preview it on a development theme, lint it, then push it as a new draft theme with a name you'll recognise:

shopify theme pull --store my-store --path ./my-store-theme
cd my-store-theme
shopify theme dev --store my-store
shopify theme check
shopify theme push --store my-store --unpublished --theme "header search draft"

Publishing stays a separate, deliberate step. shopify theme publish asks which unpublished theme to publish, then asks you to confirm. A few flags on theme push are worth knowing:

  • --allow-live is required to push to the live theme in a non-interactive run, such as CI.
  • --nodelete stops the push deleting remote files that you deleted locally.
  • --ignore skips the files you name.
  • --strict refuses to push unless Theme Check passes without errors. Warnings are allowed.

Pull before you push. Theme editor edits are saved to theme files: setting values in config/settings_data.json, section layouts in the JSON templates under templates/. theme push overwrites the remote files. We haven't tested it, but it follows that pushing an old local copy can undo a merchant's editor changes. So run theme pull first, or leave those JSON files out with --ignore.

The theme dev reference also lists --theme-editor-sync, which syncs theme editor changes into your local files. A companion flag, --reconciliation-strategy, decides how JSON conflicts are settled while it's on: keep local, keep remote, or stop. We haven't tested either for this guide, so read the current reference before you rely on them.

Last tip: a .shopifyignore file at the theme root keeps unrelated files in your repository out of CLI work.

Step 4: Run Theme Check

Theme Check is Shopify's linter for the Liquid and JSON in a theme and in theme app extensions. It catches syntax errors, missing templates, unused variables and snippets, unknown and deprecated tags, and some performance problems.

You can run it from Shopify CLI or in the Shopify Liquid extension for Visual Studio Code. The admin code editor runs it too, and underlines errors in red as you type.

The top of Shopify's Theme Check documentation page, listing the problems it detects such as syntax errors, missing templates and unused snippets, and the ways to run it.
Theme Check lists the problems it finds and the ways to run it.

From the Theme Check configuration page and the checks reference:

  • shopify theme check exits with code 1 by default when it finds an error-level issue. --auto-correct fixes some issues, and --init creates a .theme-check.yml file.
  • Checks that catch real mistakes include ParserBlockingScript (scripts without defer or async), MissingTemplate (a render or section tag pointing at a file that doesn't exist) and ImgWidthAndHeight (images without width and height).

A minimal .theme-check.yml at the theme root:

extends: theme-check:recommended
ignore:
  - node_modules/**

If your code lives in GitHub, run the same check on every pull request:

name: Theme check
on: [pull_request]
jobs:
  check:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 20
      - run: npm install -g @shopify/cli
      - run: shopify theme check

Shopify also publishes a Lighthouse CI GitHub Action. It audits your home page, a product page and a collection page on every pull request. It wants a development store set aside for it, so it suits teams more than single store owners.

Step 5: The Shopify theme review checklist

Run this on the draft theme before you publish, with the preview open on a real phone. Anything that fails goes back to step 3.

First, pick the right preview. Per Shopify's page on previewing themes, a visitor preview link works for anyone and expires 2 days after you create it. A merchant preview needs an admin login, has access to checkouts and expires after 30 days. Send visitor links for feedback, and use the merchant preview to walk through checkout.

The checklist:

  1. Theme Check is clean. No error-level issues in the files you touched.
  2. Phone layout works. Check the header, menu, product page, cart and footer. Nothing overlaps, scrolls sideways or hides a button.
  3. Desktop layout works. The same pages on a wide screen and in a narrow laptop window.
  4. Checkout path works. In a merchant preview, add one product with variants and one without, open the cart and reach checkout. Prices and variants carry through.
  5. Forms submit. Contact, newsletter, search, login and account creation each show a clear message, and any emails arrive.
  6. Apps still show. Open every page type that uses an app block or embed. Reviews, chat and similar features appear and work.
  7. The theme editor still works. Open the draft in the editor and change a setting in each section you touched. It saves and previews without errors.
  8. Markets are right. Switch country and language in the preview. Currency, translations and links are correct.
  9. Speed hasn't slipped. Compare changed pages with the live theme in a lab tool. Google's "good" thresholds are LCP of 2.5 seconds or less, INP of 200 milliseconds or less and CLS of 0.1 or less, at the 75th percentile (web.dev).
  10. Basic accessibility holds. Tab through with a keyboard, zoom the text, and check alt text, headings and form labels. Focus stays visible and every field has a label.
  11. The console is clean. Open developer tools on key pages. No new red errors.
  12. After a theme update, your CSS still lands. The selectors your custom CSS targets still exist in the new version.
  13. Rollback is ready. You know which draft is the current live theme, and you'll keep it.

Two caveats. Google's thresholds are measured on real visitors, so treat a lab result as a warning light, not a pass. And the W3C's Easy Checks say plainly that a page can pass quick tests and still have serious accessibility barriers.

Step 6: Publish, roll back and write it down

Under Draft themes, click Publish on the theme, or publish from the theme editor's top bar. Per Shopify's page on publishing themes, your previous theme moves to Draft themes and none of its changes are lost.

That old theme is your first rollback. Keep it until you're sure the new one is sound, and remember the 20-theme limit when you tidy up.

Three ways to roll back

ProblemRollbackLimits
The whole release is wrongRepublish the previous theme from Draft themes.Only works if you kept it. Editor changes made to the new theme after publishing aren't on the old one.
One theme file is wrongIn the code editor, open the file's Timeline, pick an earlier version and restore it.One file at a time. Can't recover deleted files, history is finite, and files in assets (CSS, JavaScript, images, fonts) have no Timeline. Copy the current contents first.
One commit is wrongRevert the commit on the connected GitHub branch. The theme updates to match.Admin edits are commits on that branch too, so check what the revert would undo.

That assets gap is one more reason to keep custom CSS in Git. Timeline can't bring back an older ec-custom.css, but your repository can.

Write it down

A short record lets someone else, or you in a year, undo a change safely.

  • Name themes and branches by date and purpose, such as "YYYY-MM-DD header search".
  • Keep a change log: date, who, what, which files, why, and how to remove it.
  • Note which apps and embeds each page depends on, so a new theme can be rebuilt without guessing.
  • Write commit messages that say why, not only what.

What to do when your theme isn't customisable enough

Work out what kind of gap it is first. A missing layout usually calls for a new section or theme block.

OptionPick this whenWatch out for
Add a custom section in its own fileYou need one layout the theme doesn't have.It's code you carry through every update.
Generate a theme block in the theme editorThe section you're editing accepts theme blocks.Theme Store themes only, bought not on trial, not vintage. Shopify Support won't fix the generated code.
Use an app blockAn app already does the job.Needs a compatible theme, and apps must be re-activated after a theme change.
Change themeThe architecture is behind, or updates keep dropping your code.It's a project. Some apps may not work with the new theme.
Build a custom themeNo off-the-shelf theme fits how you sell.You own every line, and every fix.

Shopify's Help Center page on generating theme blocks lists those limits. A kept block goes into sections that accept theme blocks.

Signs it's time to change theme rather than patch:

  • The architecture is behind. Shopify's page on theme architecture versions names three: vintage, Online Store 2.0, and themes with theme blocks, such as the Horizon family. Shopify's free vintage themes get only security fixes, and vintage themes can't use app blocks. To check yours, open the theme editor and go to Products, then Default product. If an Add section button shows below the section list, you're on Online Store 2.0 or later.
  • Updates keep dropping your code. If every update card says your code edits couldn't be included, the theme is working against you.
  • You override more than you use. If most of your CSS undoes the theme's own styles, you're rebuilding the theme one rule at a time.

If you run a DTC brand and the theme needs patch after patch to look like your brand, that's the signal. Our guide to choosing a Shopify theme helps with the shortlist. If nothing off the shelf fits, custom Shopify theme development explains what a build involves.

Frequently asked questions

How do I customize my Shopify theme without code?

Use the theme editor. In the admin, go to Online Store, then Themes, and click Customize. There you can change theme settings, add and reorder sections and blocks, and place app blocks. Do it on a duplicate first, then publish when you're happy.

Is it safe to edit my live theme's code?

It's the riskiest option, because mistakes show to customers at once. Make the change on a duplicate or development theme, test it, then publish.

How many themes can I keep, and do development themes count?

Up to 20 in the admin, with one published. Development themes from Shopify CLI don't count toward that limit, but they're deleted after seven days of inactivity.

Will my customizations survive a theme update?

Theme editor changes are copied into the updated theme. Code edits come along only if they don't conflict, and the theme card tells you which happened.

What is a Shopify theme checksum?

Shopify's Admin GraphQL API has a checksumMd5 field on each theme file, described as the MD5 digest of the file for data integrity. In plain terms, it's a fingerprint of the file's contents: if the checksum changes, the file changed. We'd expect only developers building sync or backup tools to need it.

Do I need GitHub to customize a theme safely?

No. Duplicates, drafts and a change log already give you a safety net. GitHub adds full history, review before changes go live, and the ability to revert a single change. If more than one person touches the theme, we think it's worth setting up.

Can I preview checkout changes before publishing?

Not at the local CLI address: the theme dev reference says checkout customizations can't be previewed there. A merchant preview, which needs an admin login, has access to checkouts. Use that on the draft theme.

Where we can help

We build and maintain Shopify themes, and this is the workflow we'd follow on your store. If you want a change made safely, a theme reviewed before an update, or a straight answer on whether to customize or replace, get in touch.

← All guidesMore on shopify development

Related content

More on shopify development

All guides

Shopify development

Shopify Liquid cheat sheet and guide: syntax, tags, filters and objects

Shopify Liquid is the template language Shopify themes use to turn store data into HTML. This page gives you a cheat sheet of its syntax, tags, filters, objects and comments, then the patterns and checks that keep theme code working.

Shopify development

How to Add Custom CSS to Shopify, Step by Step

To add custom CSS to Shopify, go to Online Store, Edit theme, Theme settings, Custom CSS, paste your code and save. One section has its own 500-character box, and bigger changes belong in your theme code.

Free newsletter

Enjoying this guide? Get one tactic like it every week.

Short notes on Shopify, AI search and conversion, taken from our own work. Unsubscribe in one click.

Let’s make your store your best salesperson.

Tell us where your brand is headed in the next twelve months and we will show you how your store can get it there. Book a 15 minute call or send us a message, and we reply within one business day.

Replies within one business day