Since croogo 3.x is based on cakephp 3.x, a theme is basically a cakephp plugin.
The easiest way to get started is to run the following in your croogo ROOT dir:
- create a new plugin called MyTheme in ROOT/plugins/MyTheme
$ bin/cake bake plugin MyTheme
- create file plugins/MyTheme/config/theme.json
use
https://github.com/croogo/croogo/blob/master/Core/config/theme.json as example
- create your template layouts, elements as needed. it follows standard cakephp directory layouts.
eg: create plugins/MyTheme/src/Template/Layout/default.ctp with the following content: <?= $this->fetch('content') ?>
- Activate MyTheme
$ bin/cake ext activate theme MyTheme
When access via browser, it should use the newly created layout
- Override other Croogo views, eg Croogo/Nodes promoted.layout by creating the following file:
plugins/MyTheme/src/Template/Plugin/Croogo/Nodes/Nodes/promoted.ctp
and populating it as needed.
Hope it helps