Custom Shopify theme development rarely means writing a theme from a blank folder. It means finding the exact point where a good theme stops fitting your product, building past that point in Liquid, and leaving the store just as editable for the merchant as it was before you arrived. Most of the craft is in that last part.
- Start from a good theme and list what it can't do. Build those parts. Don't rebuild what already works.
- On Online Store 2.0, the unit of work is the section. Its schema decides what a merchant can change without you.
- Editable is the acceptance test. Settings, presets, blocks and metafield connections, not text hard-coded into Liquid.
- Support app blocks. One line of schema lets apps add content without editing your code.
- Two writers own one theme. The editor writes JSON; developers write code. Pull first, push only named files, and never push template JSON blind.
- Design around 250 variants. Liquid sees 250 per product; Shopify allows 2,048. Work from option values, not variant loops.
When a theme stops being enough
Most stores don't need custom theme development, and the honest first step is checking whether yours does. These are the signals we take seriously:
- The product page has to behave like a tool. A ring builder, a configurator, a made-to-order flow with steps. OLVR's product page is the ring builder: shape, metal, hidden stone and engraving, chosen in sequence.
- Your content doesn't fit the theme's sections. Specifications, sizing guides, ingredient lists or care instructions that differ per product, typed into descriptions because the theme has nowhere structured to put them.
- Apps are doing the theme's job. A subscription for a tabbed description, another for a size chart, another for badges. Each injects its own script. A small section you own often replaces all three.
- The layout you've designed can't be assembled from the theme's sections without fighting them.
And the signals that sound like reasons but usually aren't: the theme "feels dated" (that's design and photography), sales are slow (that's offer and traffic), or the store is slow (diagnose first; Shopify speed optimization is usually theme hygiene, not a rebuild).
If none of the real signals apply, buy a well-reviewed theme, configure it carefully and spend the budget on photographs. If they do, read on.
What custom Shopify theme development means on Online Store 2.0
Shopify's current theme architecture has a few moving parts, and custom work happens in all of them.
JSON templates are data files listing which sections a page renders and their settings. Merchants add, remove and reorder those sections in the theme editor. Per Shopify's JSON template documentation, a template can render up to 25 sections and each section can have up to 50 blocks, as of December 2026.
Sections are Liquid files with a schema. The schema defines the settings a merchant sees, the blocks the section accepts, and presets that let it be added from the editor. Shopify notes that a section without presets can't be added or removed in the editor; it has to be placed in the template JSON by hand.
Blocks are repeatable pieces inside a section, such as a slide, a spec row or a testimonial. They can be defined inside one section, or as theme blocks in the theme's /blocks folder, which Shopify's docs describe as reusable across sections and nestable inside other blocks.
Settings come in many types: text, rich text, images, colours, products, collections, metaobjects and more. Each becomes a control in the editor's sidebar.
Dynamic sources let a merchant connect a setting to data instead of typing it. Shopify's dynamic sources documentation covers resource attributes, metafields and metaobjects, connected in the theme editor. This is how one product template can show different specifications for every product without a developer.
App blocks are content from apps that merchants place inside your sections, without the app editing your code.
Custom theme work, then, is mostly writing good sections: markup that does the job, settings that hand the right decisions to the merchant, and a schema that keeps both honest.
Anatomy of a section, with its schema
Here's a small, complete section: a specification list for product pages. Each row is a block with a label and a value, and the section accepts app blocks alongside its own. We ran it through Shopify's Theme Check linter before publishing.
{%- comment -%} sections/product-specs.liquid {%- endcomment -%}
<div class="product-specs">
{%- if section.settings.heading != blank -%}<h2>{{ section.settings.heading }}</h2>{%- endif -%}
<dl>
{%- for block in section.blocks -%}
{%- case block.type -%}
{%- when 'spec' -%}
<div {{ block.shopify_attributes }}><dt>{{ block.settings.label }}</dt><dd>{{ block.settings.value }}</dd></div>
{%- when '@app' -%}
{% render block %}
{%- endcase -%}
{%- endfor -%}
</dl>
</div>
{% schema %}
{
"name": "Product specs",
"tag": "section",
"enabled_on": { "templates": ["product"] },
"max_blocks": 12,
"settings": [
{ "type": "text", "id": "heading", "label": "Heading", "default": "Specifications" }
],
"blocks": [
{ "type": "spec", "name": "Spec row", "settings": [
{ "type": "text", "id": "label", "label": "Label", "default": "Metal" },
{ "type": "text", "id": "value", "label": "Value" }
] },
{ "type": "@app" }
],
"presets": [{ "name": "Product specs", "blocks": [{ "type": "spec" }, { "type": "spec" }] }]
}
{% endschema %}
What each part does, per Shopify's section schema reference:
nameis what merchants see in the editor.tagreplaces the default<div>wrapper Shopify puts around every section.enabled_onlimits where the section can be added. This one only appears on product templates, so nobody drops it on the contact page.max_blockscaps the rows below Shopify's limit of 50.settingsbecome sidebar controls. Text settings likevaluecan be connected to a product metafield in the editor, so one template serves every product.blocksdeclares the block types. All block names and types must be unique within a section, and setting IDs unique within a block, or the theme errors.{ "type": "@app" }accepts app blocks, rendered with{% render block %}. Shopify's app blocks guide notes that@appblocks don't accept alimitand aren't supported in statically rendered sections.presetsmake the section addable from the editor with two empty rows to start.{{ block.shopify_attributes }}on each block's wrapper is how the editor finds the block to highlight it.
Two rules from the reference worth tattooing somewhere: a section can have only one schema tag, containing only valid JSON, and it can't be nested inside another Liquid tag. Run shopify theme check before every push; it caught both deliberate mistakes we planted in this section when we tested it.
Keep it editable: the merchant test
The best custom theme work disappears into the editor. A merchant should be able to change every word, image and arrangement a customer sees without opening code. A few habits get you there:
- Every visible string is a setting or comes from data. Hard-coding a heading saves five minutes for the developer and costs a support request every time marketing wants to change it.
- Model repeated content as data, not blocks. Specifications that belong to a product go in product metafields and connect to settings as dynamic sources. Content shared across pages, like a size guide, suits a metaobject. Blocks are for layout choices, not for retyping data.
- Give every section presets unless it's genuinely fixed to one place. Without presets, merchants can't add or remove it.
- Expose decisions, not knobs. Three well-named layout options beat twelve sliders. Every setting is a combination someone has to test.
- Never key code on generated IDs. Shopify's schema reference warns not to rely on a block's literal ID because it's generated and can change. Section IDs on JSON templates are generated per template too. On OLVR, scripts that looked for one hard-coded section ID quietly stopped running when the product page moved to a new template. Select by attribute or prefix instead.
- Leave the custom CSS setting to merchants. Shopify exposes custom CSS at theme and section level and asks theme developers not to add or edit it; your styles belong in the theme's own assets.
The acceptance test is simple. Hand the store to the person who runs it, ask them to change a heading, swap an image, add a section and reorder blocks. If any of that needs you, the work isn't finished.
App blocks: let apps in without letting them write your code
Apps used to integrate by editing theme files. Many still do, and Shopify's help centre warns that some leave code behind when uninstalled. The modern route is theme app extensions, which Shopify says don't edit theme code: merchants place the app's blocks in sections, or add app embeds, from the editor.
Your side of that bargain is one line: include { "type": "@app" } in the blocks of any section where app content might belong, typically the main product section and general content sections. Then:
- Prefer apps that ship theme app extensions when choosing between two that do the same thing.
- Reserve space for app content that loads late, so it doesn't shift the page.
- Test the seams. Apps assume they own their corner of the page. When two of them touch the same thing, such as the cart, the bug lives between them. On OLVR, the engraving a customer typed was collected by one app and the cart line was built by another, and a small bridge script in the theme now carries one into the other.
Version control when the theme editor writes files too
This is where custom theme work goes wrong most often, and it's worth understanding before you hire anyone.
A live Shopify theme has two writers. Developers write Liquid, CSS and JavaScript. The theme editor writes JSON: templates, config/settings_data.json and section group files. Shopify's GitHub integration describes it plainly: theme editor customisations "are stored in setting files, which are part of the theme code."
You have two sane ways to work:
Connect the theme to GitHub. Shopify's integration updates the theme whenever the connected branch changes, and commits admin edits back to the branch, batching saves made within about ten seconds into one commit. That two-way sync can't be disabled, so the branch always reflects reality. It suits teams who want every change, including the merchant's, in history.
Use Shopify CLI with discipline. shopify theme push has the flags you need: --only to push named files, --ignore to skip patterns, --nodelete to stop it deleting remote files missing locally, and --allow-live, which is required to push to the live theme in non-interactive runs. The rules we work to on OLVR:
- Pull the live theme and commit whatever changed in the editor before touching anything.
- Push only the files a change touched. Liquid, CSS, JS and assets are safe; the editor doesn't write them.
- Never push
templates/*.jsonorsettings_data.jsonfrom a terminal without pulling, diffing and pushing in one short window. A push of a template overwrites every editor change made since your last pull. - Find the live theme by role (
shopify theme list --role live), never by a saved ID or name. Stores collect near-identical theme copies, and which one is live changes when someone publishes. - Duplicate the theme before risky work. The code editor's Timeline view restores one file at a time, can't recover deleted files and keeps no history for files in
assets.
The 250-variant wall, and how to design around it
Shopify raised the product variant limit to 2,048 per product in October 2025. Theme code didn't follow. Shopify's high-variant guide says it restricted product.variants to return at most 250 variants, and that any Liquid needing the complete set "won't work as expected if the product contains more than 250 variants."
We met this on OLVR. One ring product multiplies shapes, metals and hidden-stone options into 288 variants. Variants are ordered by shape, so the last 38 were invisible to any template that looped over them, and lookups for those rings simply failed. Nothing errored.
The fix is to stop treating the variant list as the source of truth for the page. Shopify's documented pattern:
- Render options with
product.options_with_values, and each value as aproduct_option_value, which knows its ownid, whether it'sselected, whether it'savailable, and thevariantit completes with the current selection. - Select a combination in the URL with
option_values=and option value IDs instead of a variant ID. On OLVR, this is what links straight into the builder with a ring already chosen, and it reaches all 288. - When a shopper changes an option, re-render the section for the new combination through the Section Rendering API instead of searching a variant array in JavaScript.
{%- comment -%} Reads option values, never product.variants, so it works past 250 variants {%- endcomment -%}
<div class="option-picker" data-section-id="{{ section.id }}">
{%- for option in product.options_with_values -%}
<fieldset>
<legend>{{ option.name }}</legend>
{%- for option_value in option.values -%}
<label>
<input type="radio" name="{{ option.name | escape }}-{{ option.position }}"
value="{{ option_value | escape }}" data-option-value-id="{{ option_value.id }}"
{% if option_value.selected %}checked{% endif %}
{% unless option_value.available %}class="is-unavailable"{% endunless %}>
{{ option_value }}
</label>
{%- endfor -%}
</fieldset>
{%- endfor -%}
</div>
<script>
document.addEventListener('change', async (event) => {
const picker = event.target.closest('.option-picker');
if (!picker) return;
const ids = [...picker.querySelectorAll('input:checked')].map((input) => input.dataset.optionValueId);
const query = `option_values=${ids.join(',')}`;
const response = await fetch(`${location.pathname}?${query}§ion_id=${picker.dataset.sectionId}`);
const html = new DOMParser().parseFromString(await response.text(), 'text/html');
const fresh = html.querySelector('.option-picker');
if (fresh) picker.innerHTML = fresh.innerHTML;
history.replaceState(null, '', `${location.pathname}?${query}`);
});
</script>
That follows the pattern in Shopify's guide, tidied; it passed Theme Check and the script passes node --check. Shopify also warns that when a combination has no variant, product.selected_or_first_available_variant returns null, so the price and add-to-cart code needs a branch for it.
The other half is design. Ask which options actually change what the shopper sees. A ring's photograph depends on shape and metal, never on the hidden stone, so OLVR's gallery needs a map of 24 images, not 288. Every option that doesn't change the picture is one you don't have to photograph, store or load. Audit your theme for loops over product.variants and for product | json before you add options, not after; Shopify notes that product.variants.first and product.variants.size still work, because they don't need the full set.
What to ask for when you commission it
If you're hiring someone for custom Shopify theme development, these make the difference at handover:
- The code in a repository you own, with the base theme and its version named.
- A list of every new section and block, what each is for, and which settings a merchant controls.
- Presets on every section meant to be added in the editor, and
@appsupport where apps might go. - Data in metafields and metaobjects, defined and documented, rather than pasted into descriptions.
- A clean Theme Check run, and a performance check on a product page with real apps installed.
- A written deploy routine that says who may push which files and how editor changes are protected.
- Nothing that loops over every variant if any product is near 250, or could be one day.
Our Shopify Liquid vs Hydrogen comparison covers the bigger architectural question if someone is pitching you headless instead. For most stores, a well-built theme goes much further than people expect; we built a scroll-driven 360-degree ring view inside OLVR's theme without a 3D engine.
Our recommendation
Start from a strong base theme. Write down, specifically, what it can't do for your product. Build those parts as sections with real schemas, presets and app block support, put product data in metafields, and keep every visible word editable. Put the code in version control from the first day, treat the theme editor as a second developer whose work you must never overwrite, and if any product could pass 250 variants, build the option picker on option values now rather than discovering the limit from a customer.
If you're on WooCommerce and wondering whether this kind of control is worth the move, our Shopify vs WooCommerce comparison weighs it.
Related reading: Shopify Liquid vs Hydrogen: when headless actually pays
If your theme has hit its limits, send us the store and the list of what it can't do. We do custom Shopify theme development from Vancouver for brands across Canada and the US, and we'll tell you which items on that list need code and which need a setting.
Keep reading
- Shopify Liquid vs Hydrogen: when headless actually pays
- OLVR ring scroll: Rolex 3D via Shopify custom development
Work with Rough Works
Need a partner for your next site? We're a Vancouver-based digital agency building websites and AI-enhanced experiences for brands across Canada and the United States. Start a project →
Common questions
What is custom Shopify theme development?
It's writing or extending the Liquid, CSS and JavaScript that render a Shopify storefront, so the store does something its off-the-shelf theme can't. On Online Store 2.0 that usually means new sections and blocks with their own settings, product templates built around a specific product, data modelled in metafields, and support for app blocks. Most custom work extends a well-built base theme rather than starting from nothing. The goal is a storefront that fits the product while the merchant can still edit content and layout in the theme editor without a developer.
Do I need a custom Shopify theme or will a template theme do?
A good theme is enough for most stores with ordinary product pages. You need custom work when the product page has to behave like a tool (a builder, configurator or made-to-order flow), when your content doesn't fit the theme's sections, or when you're paying for apps that only exist to patch what the theme can't do. Start with a theme, list precisely what it can't do, and build only those parts. Rebuilding everything from scratch is rarely the right answer and makes future theme updates harder.
What is a section schema in Shopify?
It's the JSON inside a section file's schema tag that tells the theme editor what the section is and what a merchant can change. It names the section, declares its settings (text, images, colours, products and so on), the block types it accepts, how many blocks it allows, which templates it can be added to, and presets that let merchants add it from the editor. Each section can have only one schema tag, it must contain valid JSON, and it can't sit inside another Liquid tag.
How many sections and blocks can a Shopify template have?
As of December 2026, Shopify's documentation says a JSON template can render up to 25 sections, and each section can have up to 50 blocks. A section can set a lower block limit with max_blocks, and static blocks don't count toward the limit. A theme can contain up to 1,000 JSON templates. In practice you rarely hit these numbers on a well-designed page. If you're close, the page is usually trying to do too much, or content that belongs in metafields is being entered block by block.
Why does my Shopify theme only show 250 variants?
Because Liquid's product.variants returns at most 250 variants when unpaginated, even though Shopify allows up to 2,048 variants per product. Any theme code that loops over every variant, or dumps the product as JSON for a script to search, silently misses the rest. Shopify's documented fix is to stop loading all variants: render options with product.options_with_values, use option value IDs and the option_values URL parameter to select a combination, and refresh the section through the Section Rendering API when the shopper changes an option.
Can I edit a custom Shopify theme in the theme editor?
You should be able to, and that's the test of good custom work. Sections with presets can be added, moved and removed in the theme editor; their settings appear in the sidebar; blocks can be reordered; and settings can be connected to metafields as dynamic sources. What you can't do in the editor is change the code itself. A custom theme that forces you to email a developer to change a heading or swap an image has been built wrongly, however impressive it looks.
How do I keep a Shopify theme in version control?
Either connect the theme to a GitHub branch with Shopify's GitHub integration, which pushes branch changes to the theme and commits admin edits back to the branch automatically, or work with Shopify CLI and a disciplined pull-then-push routine. The trap is that the theme editor writes JSON templates and settings files too. Pull the live theme before every session, push only the files you changed, and never push template JSON that a merchant may have edited since your last pull.

