Folder structure
Zero One uses a slightly different folder structure than a standard Kirby installation.
The goal is to keep the theme itself separate from your project-specific customizations, making updates easier and helping you maintain a cleaner project structure.
Don't worry, this approach is fully supported by Kirby and works exactly like any other Kirby website.
How Zero One Is Organized
Unlike a standard Kirby installation, Zero One is delivered as a plugin.
The complete theme, including its blueprints, templates, snippets, controllers, models, collections, and functionality, is located in:
site/plugins/zero-one/This directory contains the actual theme and should be considered the Zero One core.
In addition, Zero One provides a dedicated customization layer located in:
site/theme/This directory is intended for your own project customizations and extensions.
What Is The site/theme Folder For?
The site/theme directory allows you to:
Override existing Zero One files.
Add your own templates.
Add your own snippets.
Add custom blueprints.
Add custom controllers and models.
Extend the functionality of your project without modifying the theme itself.
Think of site/theme as your project's workspace, while site/plugins/zero-one contains the original theme files.
Why Is This Better?
This approach offers several advantages:
Cleaner separation between theme files and project files.
Easier Zero One updates.
Safer customizations.
Reduced risk of accidental file overwrites.
Better long-term maintainability.
Instead of directly modifying the Zero One theme, your project can build on top of it.
Theme Overrides
One of the most powerful features of Zero One is the ability to override theme files.
For example:
can override:
When an override exists, Zero One automatically uses your version instead of the original file.
This allows you to customize the theme safely without modifying the plugin itself.
Adding Your Own Files
The site/theme directory isn't limited to overrides.
You can also use it for completely custom files that don't exist in Zero One at all.
These files will work alongside the Zero One theme and can be used to build project-specific functionality.
These files will work alongside the Zero One theme and can be used to build project-specific functionality.
Which Files Should I Modify?
As a general rule:
✅ Safe to customize:
❌ Avoid modifying directly:
Direct changes inside the plugin may be lost during future Zero One updates.
Instead, use the Theme Extending system whenever possible.
Recommended Workflow
A typical Zero One project follows this approach:
Keeping these responsibilities separated makes projects easier to maintain, easier to update, and easier to troubleshoot.
Last updated