Design Custom UI kits in Child Themes
Starting from LiveCanvas 4.4, developers can enhance their themes with a defined folder structure that integrates directly with the LiveCanvas editor. This feature allows you to build modular, reusable UI kits inside your child themes, giving users a customized editing experience to the end user - all via simple HTML files in hot folders. See aso the the introduction article.
π The "livecanvas" Folder: build your custom UI kit
Every child theme that wants to integrate with LiveCanvas should include a folder named /livecanvas/ in the root directory.
By packaging your custom /livecanvas/ folder inside a child theme, you can:
- Provide a ready-made UI kit for clients
- Maintain design consistency across projects
- Create themes that deliver a premium editing experience
This folder must follow a specific structure:
/livecanvas
βββ blocks/
βββ sections/
βββ pages/
Each subfolder should contain any kind of .html files, which will be automatically detected and displayed inside the LiveCanvas editor.
Here is what each subfolder is for:
/pages/
This folder should include full-page templates (e.g., homepages, about pages, landing pages) that users can insert and customize.
/sections/
This folder is for layout-ready horizontal sections (e.g., hero headers, testimonials, contact forms). These are commonly higher lever components for page structure.
/blocks/
Use this folder for small, reusable components (e.g., buttons, image + text snippets, icon boxes). These are atomic-level elements meant to be used as part of larger layouts.
ποΈ Use Subfolders forΒ Categories
Each of the three folders can include subfolders, which are used as categories in the editor.
For example:
/livecanvas/sections/
βββ Hero/
β βββ hero-1.html
β βββ hero-2.html
βββ Testimonials/
βββ testimonials-classic.html
In the editor, these files will be listed under the appropriate category names ("Hero", "Testimonials").
π How to Add Your Own Blocks
- Create your custom
.htmlfile. - Place it inside the appropriate folder (
blocks,sections, orpages). - Optionally organize it in a subfolder to categorize it.
- Refresh the LiveCanvas editor β your new item will appear automatically.
π‘ Tip: Use Picostrap Starter
We recommend starting from the Picostrap Starter Child Theme, which already includes the /livecanvas/ structure. This gives you a clean and compatible foundation for developing modular themes.
π The "starter-data" Folder: delivering a complete site package
[LC 4.6+] You can includeΒ in your child theme a "starter-data" folder, containing a set of JSON files to initialize starter content and fully setup the site.
As a practical example, have a look at the "starter-data" folder of Gourmet, our free child theme for picostrap.
Here is a list of the files that will be imported, if present, at child activation, after user confirmation:
demo-content.xmlfile to deliver demo content using standard WordPress XML (You can build this using the built-in WordPress XML Export Plugin)menus.jsonfile to preconfigure menus. You can build a JSON file from the Picostrap backend settings.theme-options.jsonfile to preconfigure Customizer options, to retain the exact Bootstrap Customizer settings. You can build a JSON file from the Picostrap backend settings.livecanvas-settings.jsonfile to preconfigure LiveCanvas options, to retain the exact Bootstrap Customizer settings. See the examples file to enable header, footer, and dynamic templating.
π Editor Sync Behavior
LiveCanvas will automatically detect new .html files placed into the /livecanvas/ folders. You donβt need to recompile or trigger any sync process β simply reload the editor and your content will appear.
This modular file-based approach makes LiveCanvas theme development faster, more organized, and easier to maintain. It's the ideal foundation for building modern, editable WordPress themes with developer-first control.
Next Topic: WooCommerce & LiveCanvas »