The Template Editor
Turn a built-in theme into a template of your own, then change it visually in Preview mode or in Liquid and CSS in Code mode. How saving, publishing and errors work.
A built-in theme can be adjusted on any plan from its preview page (see Built-in Themes and the Theme Preview). The Template Editor goes further: a copy of the theme that you own, where every block, label, colour and line of code can change Medium Business.
Creating a Custom Template
- Open Templates and pick the Invoice or Estimate tab.
- Hover a built-in theme and choose Customize. The app copies the theme, including the colours and block text you set on its preview page, into a new template named after it, such as "Horizon (Copy)", and opens the editor.
- Rename it in Template Settings → Template Name (up to 40 characters) and add an optional Description.
Custom templates appear in Your Custom Templates, above the built-in themes on the same tab. Edit opens one again. Duplicate makes a copy of that template, with all its changes, as a new draft named "<name> (Copy)" ("(Copy 2)" and so on for later copies); its description says which template it was copied from. Delete asks for confirmation first, and deleting the active template makes its built-in theme active again. A custom template is a copy: later improvements to the built-in theme do not reach it. See Custom Templates and Your Plan for what a plan change does to them.
The Editor at a Glance
- Toolbar: the template's name with its status (Draft, Published, or Unsaved while you have changes), the Preview and Code tabs and the sample order picker.
- Preview mode: the document as it prints, where you click a block to change it. See Preview Mode.
- Code mode: the template's Liquid files and CSS with a live preview. See Liquid and CSS Basics.
- Template Settings: colours, fonts, formats and language, opened with the gear button. See Store & Branding on Documents and Template Settings.
Previewing With a Real Order
The document starts on a sample order (#1042, or the draft order #D1042 for estimates). Click the sample order in the toolbar to pick one of your 50 most recent orders, or draft orders on an estimate template, and the canvas renders with its data: its customer, lines, discounts, taxes and metafields. The × next to it goes back to the sample. The choice is kept while the browser tab stays open and is shared with the template's preview page.
Saving and Publishing
- Save (in Shopify's save bar) stores your changes and keeps the template's status, Draft or Published. If the template is already active, saved changes print on new documents straight away. Discard drops them and returns to Templates. The save bar closes again if you put every change back as it was.
- Publish saves, marks the template Published and makes it the active template for its document type, so new documents print with it. The button shows while the template is a draft or is not the active template.
- PDFs generated earlier stay as they were. A saved PDF made with the template's earlier version counts as out of date, so the app makes a new one when your PDF settings call for it; see Generate, Print, Send or Download an Invoice.
When the Template Has an Error
A Liquid mistake shows a Liquid Render Error (or Liquid Parse Error) banner that names the file and line, such as "Liquid Render Error · blocks/notes.liquid, Line 3:4", with the message. It stays at the top of the canvas while you scroll, and the canvas keeps the last version that rendered. Save and Publish stay disabled until it is fixed, and the app checks every file again when you save, publish or make the template active — it refuses with the file and line of the error — so a broken template can never reach a customer. An error in a Custom Liquid block counts too. If the preview simply could not be refreshed (a network hiccup), a Preview Not Updated notice with Try Again appears instead; it does not block saving.
Labels and Languages
A label you change in the editor — a heading, a column title, a totals row — changes the store's wording for the language the canvas shows, so it applies to every template printed in that language. English is covered on every plan; other languages need Large Business, and below that a non-English label stays on the template you are editing. Your own text — Free Text, Custom Liquid, and the Terms Text of Terms & Refund Policy and Payment Terms — stays on the template. The signature text, the footer notice, the estimate's validity statement and the advance and balance labels count as labels too: changing them changes the store's wording for that language. See Languages.
Default Note Text is your own text rather than a translation, so it is shared by every template printed in its language on every plan. Template Settings → Language → Edit Labels lists only the labels this document type prints; Settings → Languages lists those of both. Reset Labels clears this template's own labels and, from the shared wording, only this document type's labels.
Screen Size
The editor needs a desktop or laptop. When the space Shopify leaves the app is narrower than about 900 pixels, the page shows a read-only preview with the notice "Editing Needs a Larger Screen". On a laptop, collapsing Shopify's sidebar may give the editor enough room.
Was this guide missing something? Tell us and we will fix it.
Contact Us