Site Docs

# Theme code

Site → Theme code is where your own themes live. A theme starts from the base theme; you copy the files you want to change, preview the draft on your real site, and activate it as a new version you can go back from.

Zuletzt aktualisiert: 29. November 2026

**Navigation**

Open **Site → Theme code**. It's for the account's owners and admins on Professional and Enterprise, and for our team. Editors and authors don't see it. On another plan the page says what's missing and offers **Ask about a plan**; a site keeps the theme it shows.

Most sites never need this: **Site → Appearance** changes colours, fonts and the logo on every plan. Theme code is for a designer or developer who wants to change the page's HTML, add their own styles and scripts, or use their own fonts.

## Start a theme

1. Under **New theme**, type a name in lowercase letters, numbers and dashes, such as `bakery-summer`.
2. Under **Start from**, keep **An empty theme**, or choose a copy of one of Teksaro's themes, such as **A copy of Editorial**.
3. Choose **Start the theme**.

An empty theme looks exactly like the base theme: it has no files of its own yet, only its settings (`_meta/theme.toml`). A copy holds every file of the theme it copies (its templates, stylesheet, fonts with their licences, and settings), ready to change. It is yours from then on: later changes Teksaro makes to the original don't reach it.

## Change a file

The **Files** list shows every file the theme uses. Files marked **Changed** are the theme's own; the others come from the theme it starts from.

1. Choose a file, such as `partials/footer.jinja`.
2. Choose **Copy to change it**. The file is now the theme's own.
3. Change it in the editor and choose **Save draft**.

Saving never changes your sites: it saves a **draft**. **New file** adds a file of the theme's own (a partial, a stylesheet in `assets/css`), and **Remove from this theme** takes one out, so the file it started from shows again. It asks first, since your changes to that file are lost.

To add an image, font, stylesheet or script, choose its folder under **Upload an image, font, stylesheet or script** and the file. Images can be PNG, JPEG, WebP, AVIF, GIF or SVG; fonts WOFF2, WOFF, TTF or OTF; up to 4 MB each.

## Problems

After each save the draft is checked. A save with problems says so ("Draft saved with 1 problem"), and each problem shows at the top of the page with its file and line, such as `partials/footer.jinja, line 4: unexpected end of template`, and the line is marked in the editor. Where the cause is a common one, a line under it says what to change, such as "An if needs a condition" for `{% if %}`. A draft with problems can't be activated.

Once the draft is activated and unchanged, the line at the top says which version it is the same as ("The draft is the same as version 2"), and **Activate draft** isn't offered on the site that shows it.

## Preview the draft

Under **On your sites**, choose **Preview draft** beside a site. The site opens in a new tab with your draft, and a bar at the top says "Preview of the draft". Only you see it, for an hour, and search engines don't. Save again and reload the tab to see the change. Choose **End preview** in the bar to see the site as visitors do.

## Activate, versions and going back

**Activate draft** asks first, then checks the draft and shows it to every visitor of that site at once as a new numbered version. Each site stays on the version it activated until you activate again, so changing the draft later never changes a live site.

**Versions** lists each version with when and who made it. To put an earlier one back, pick the site and choose **Use on**. Beside each site, the going-back button says where it goes, such as **Go back to version 1** or **Go back to Teksaro Classic**, and you stay on the theme's page. **Use Teksaro Classic** shows Teksaro's own theme on the site again; your theme and its versions are kept, to activate again later.

## After Teksaro updates

Each time Teksaro is updated, every version of your themes is checked against the new release: each template is compiled and tried with sample pages, as a visitor's page would be. **After Teksaro updates** on the theme's page lists what each version's last check found, with the file and line to change: a template that no longer works, a name Teksaro renamed or removed, a layout listed in `theme.toml` without its file, a page on your site using a layout the theme doesn't offer, sections in a region the theme doesn't have, or a saved setting that no longer fits. **Check again** checks every version now.

When an update renamed something your draft uses, **Changes Teksaro can make for you** lists each place. **Apply the fixes** saves a new draft with those changes and nothing else. Preview it and activate it as usual: your sites keep the version they show until you do.

On **Appearance**, a note under the theme a site shows says when its last check found problems. A theme made for a newer Teksaro than ours (`teksaro` in `theme.toml`) can't be uploaded or saved until that version is out.

## Work on your computer

**Download ZIP** gives the draft (or a version) as a ZIP of the theme's own files. Change them with your own editor, then upload the ZIP with **Replace the draft with a ZIP** on the theme's page, or **Upload a theme** on the list. A ZIP with the same name in its `theme.toml` as one of your themes becomes that theme's draft, and the message says so ("Replaced the draft of bakery"); any other is a new theme.

A ZIP can hold only a theme's folders and file types, up to 600 files and 32 MB. Links, nested archives and files outside the theme are refused, with the file named.

## Who can change theme code

The account's owners and admins can, on Professional and Enterprise. The owner can turn **Edit theme code** off for anyone on **Team** (and on again). Editors and authors never can. Every save, activation and going back is in the account's audit log.

If your plan changes to one without theme code, your sites keep the theme they show, but no one can change or activate themes until the plan has it again.
