Skip to content

Using the Code Editor

Using the Code Editor

The code editor lets you view and edit every file in your active theme directly from the Cartly admin. No FTP, no external tools required.

Opening the editor

  1. Go to Online Store → Themes.
  2. Click your active theme, then click Edit Code.

File tree

The left panel shows all theme files organized into folders: layouts/, templates/, sections/, snippets/, assets/, config/, and locales/. Each file has a badge:

  • Synced — stock platform file, read-only until you fork it.
  • Custom — your edited version. Fully editable.
  • New — a file you created.

Use the filter chips (All / Modified / Synced) at the top of the tree to focus on just your customizations.

Editing a file

  • Click a Custom or New file to open it directly.
  • Click a Synced file — it opens read-only. Click Edit file or press ⌘E to fork it and start editing.
  • Press ⌘S (Mac) or Ctrl+S (Windows) to save changes.

Keyboard shortcuts

ShortcutAction
⌘S / Ctrl+SSave current file
⌘E / Ctrl+EFork the active Synced file (opens edit mode)
⌘F / Ctrl+FFind in current file

Preview button

Click Preview in the top toolbar to open your storefront in a new browser tab. The preview reflects the current state of all saved files. Preview links expire after 15 minutes.

Creating a new file

  1. Click the + icon in the file tree header.
  2. Choose a file type: Section (generates a working scaffold), Snippet, Asset, or other.
  3. Enter a file name and click Create.
  4. The new file opens immediately and is ready to edit.

Deleting a file

Right-click a Custom or New file and choose Delete. Deleting a Custom file reverts it to the stock platform version (Synced). Deleting a New file removes it entirely.

Was this helpful?