Overview
A theme package is a folder of settings, sections, styles and optional sample content, zipped into one file. Uploading it adds a new theme to Online store → Themes that you can preview, customise, edit as code and publish like any other.
Nothing is saved until every file passes the checks.
How it works →Keep two uploaded themes ready while another is live.
Draft rules →Add sample images and text so the theme looks finished.
Dummy data →Each theme has its own code and customizer settings.
Per-theme code →Upload a theme
- Open your themes. In the admin, go to Online store → Themes.
- Press Upload theme. The button is in the Draft themes section. It is disabled when you already have two drafts.
- Choose the .zip file. Drop it on the box or click to browse. The file can be up to 28 MB.
- Read the check result. The theme is checked straight away and nothing is saved. You see the theme's name and a plain-language list of any problems (see Fixing errors). Warnings do not stop the upload.
- Decide on dummy data. If the package includes sample content, the Add dummy data box is enabled (see below).
- Press Upload theme. The theme is installed as a draft. Open it with Customize or Edit code, or publish it when you are ready.
Preparing the zip
The zip must contain the package files at its top level, in this layout:
theme.manifest.json
config/theme.json
sections/*.flys
snippets/*.flys
assets/custom.css
assets/custom.js
layout/head.html
layout/body-end.html
demo/content.json
demo/media/*
- Required:
config/theme.jsonand a theme name intheme.manifest.json. Everything else is optional. README,LICENSEand.md/.txtfiles are allowed and ignored. Any other file is ignored with a warning.- Use a standard zip. Password-protected archives, Zip64 archives, symbolic links and unsafe paths are refused.
- If you build themes yourself,
node scripts/build-theme-zip.js themes/<handle>runs the same checks and writes the zip for you. See Build and check.
Add dummy data
When the theme includes a demo/ folder, the upload dialog offers an Add dummy data checkbox.
| Choice | What you get |
|---|---|
| Ticked | The theme's sample images, videos and text are added. The media is saved to your Files library, so it counts toward your storage. |
| Unticked | The clean theme only: the same layout with empty images and neutral text, ready for your own content. Nothing is uploaded. |
Dummy data is text, images and videos only. It never adds products, collections, pages or menus. The choice is made at upload time. To change your mind, delete the draft and upload it again.
Draft themes
- A store keeps at most 2 uploaded themes that are not live, plus any number of built-in themes.
- The live uploaded theme does not count toward the two.
- Uploading a third is refused until you delete one.
- Uploaded themes cannot be used in A/B theme tests.
Storage
Uploaded themes share your store's storage allowance with the Files library. These all count:
- Theme code and earlier saved versions of it
- The theme's settings and package data
- Dummy data media, if you added it
- Everything in the Files library
The upload dialog shows how much space is free. If the theme would not fit, the upload is refused before anything is saved. Deleting a draft frees its dummy media (unless you used a file elsewhere), its sections and its code.
Theme code
Each uploaded theme has its own custom.css, custom.js, head.html and body-end.html. They apply only while that theme is live or being previewed in the customizer, so one theme's styles never leak into another.
- The code editor shows and edits the live theme's own copy.
- Custom sections and snippets are shared across your store.
- If your plan does not include the code editor, the theme installs without those four files. Its sections still work, and you are told so.
Name clashes
Sections and snippets live in one store-wide set of files. When an uploaded theme brings a section whose name already exists with different content, the incoming one is renamed automatically (ember-promo becomes ember-ember-promo). References inside the theme are rewritten to match. Identical files are reused. Your own sections are never overwritten.
Reset and delete
- Reset to defaults in the customizer rebuilds an uploaded theme from the package as it was installed, including dummy data if you ticked it.
- Delete a draft from the ⋯ menu of its row in Draft themes. You cannot delete the live theme (publish another one first) or a theme used in an A/B test (remove it from the test first).
Fixing errors
Every problem is shown in plain words with the file it came from. Fix it in the package, zip it again and choose the file once more.
| Message | What to do |
|---|---|
| That is not a zip file / The zip file is damaged | Re-create the zip with your system's standard "compress" tool. |
| Password-protected or Zip64 archives are not supported | Create a normal, unprotected zip. |
| The zip holds too many files | The limit is 300 files. Remove files that are not part of a theme. |
| The package needs config/theme.json | Put config at the top level of the zip, not inside an extra folder. |
| … is not valid JSON | Fix the syntax in the named file (a missing comma or quote). |
| The theme needs a name | Add "name" (2 or more characters) to theme.manifest.json. |
| … is too large | Each code file can be up to 200 KB. Split it up or trim it. |
| The file name must be lowercase letters, numbers and hyphens, ending in .flys | Rename the section or snippet file, for example promo-band.flys. |
| sections/….flys: (Liquid or schema error) | Open that file in the code editor and use its error message and line number. |
| assets/custom.js has a JavaScript error | Fix the syntax error in the script. |
| These section types do not exist | Use built-in section types, or add the custom section to the package. |
| A home page can have at most 30 sections | Remove sections from config/theme.json. |
| demo/content.json points at @demo/…, which is not in demo/media | Add the file to demo/media/ or remove the token. |
| This file type is not allowed | Demo media can be png, jpg, webp, gif, svg, mp4 or webm. |
| The demo media is too large | All demo media together must be under 15 MB. |
| The demo content changes which sections exist | Dummy data may only change settings. Do not add or remove sections in it. |
| This store can have 30 custom sections | Delete unused sections in the code editor, then upload again. |
| You can keep 2 uploaded draft themes | Delete one draft theme, then upload again. |
Limits and notes
| Item | Limit |
|---|---|
| Uploaded file | 28 MB |
| Files in the zip | 300 |
| One code file | 200 KB |
| Draft themes (not live) | 2 |
| Dummy data media in total | 15 MB |
| Custom sections / snippets in a store | 30 / 40 |
- Uploaded themes cannot be exported back to a .zip yet.
- Signature controls (
sig*settings) are not available for uploaded themes.