Build themes for Emnaro Sites
Create a reusable site design, package it as JSON and give clients a theme file they can install in Sites.
On this page
Install a theme in a new Sites space
Sign in as the space owner or an administrator and finish the initial site setup. Choose an empty Sites space for a full theme. For a site that already has pages, open Import design and choose the same file to review its header, footer, colours and optional logo. Your existing pages and menus stay in place.
- Open Header, footer & colours in the target Sites space. Under Custom theme package, select Upload theme file and choose the developer’s JSON. Review the pages and images, then select Install theme as draft.
- Open the imported homepage and try the header links, footer links and page buttons. Replace sample text and review the images and their alternative descriptions.
- Review the site on a phone and desktop. Publish through the normal Sites review when it is ready.
Build, export and test your theme
Start in a clean Sites space so sample pages and media are easy to identify. Use Emnaro Editor to arrange sections, then choose a header, footer and colour palette and build your menus.
Use sample content and media that your buyers may redistribute. Local business details, policy decisions and live publication belong to the buyer’s own setup.
- Create the homepage and at least one linked page. Give pages and blocks stable identifiers and write alternative text for meaningful images.
- Save your edits and select Download draft theme in Header, footer & colours. Give the downloaded file a clear name.
- Install the exact file in a second empty Sites space. Check images, navigation, editing and the full preview. Keep the file and preview images together with the version and your support contact.
Sites theme file format
Use UTF-8 JSON with format emnaro-sites-theme, integer version 1, a name and a design object. The file can be up to 6 MiB and include up to 20 draft pages, 20 blocks per page and 20 menu entries. Use the starter to see working pages and navigation. Export from the editor for an example containing more advanced blocks and a custom row layout.
Designs use Emnaro’s native blocks and controls. PHP, JavaScript, raw HTML, CSS, SVG and remote image references aren’t part of the theme format.
design- Contains the base template key, palette, optional accent colour, header and footer choices, homepage, pages, menu and assets. For appearance values, use a fresh editor export as the reference.
design.pages- Each page contains its own slug, title, search text and supported blocks. The homepage, page links and menu entries reference the package’s page slugs. Add external links in the receiving Sites editor after installation.
design.assets- A map of up to 24 image keys. Each image uses name, type and base64 and contains a still JPEG, PNG or WebP up to 1 MiB decoded. An image block references its asset_key and supplies alternative text.
If a Sites theme won’t install
Check the format and version, that every linked page and image key exists, and that your workspace has room for the package’s images. If you have an older download with appearance settings only, choose Import design.