Starter theme based on Timber's Starter Theme. It is already part of Circul8 Wordpress Stack, can be also used with Root's Bedrock or normal Wordpress installation.
- Using Circul8 Wordpress Stack
composer create-project circul8/wordpress new-project
- Using Bedrock or normal Wordpress installation
- Navigate to
/web/app/themes/or/wp-content/themes/ - Run
git clone [email protected]:circul8/wordpress-starter-theme.git - Run
composer install
- Navigate to
Templating is done by Timber plugin which uses Twig.
| Filter | Description |
|---|---|
dump |
Dumps the variable to the Tracy's debug panel. |
cfs($post_id = NULL, $options = []) |
Returns CFS()->get($field_name, $post_id, $options) as descibred here where $field_name is filtered value. |
post |
Returns new Timber\Post($id) where $id is filtered value. |
image |
Returns new Timber\Image($id) where $id is filtered value. |
target |
Returns _blank or _self, expects Hyperlink Array from CFS. |
webalize |
Webalize string: "Hello, my friend!" -> "hello-my-friend" |
Those π are Must-Use plugins installed into mu-plugins folder. If you install this theme from project's root using composer require, those plugins may be installed into plugins folder instead.
| Plugin | Description |
|---|---|
timber-library |
The core plugin to create custom theme. |
custom-field-suite |
To manage custom fields. |
wp-tracy |
Debugging, adds debug panel. |
disable-comments |
To disable comments. |
tinymce-advanced |
Advanced WYSIWYG. |
ββ assets β Static files - images, CSS, LESS, gulp, JS, ...
ββ defaults β Timber's starter theme twig files for fallback.
ββ pages β Custom Wordpress template pages (.php)
ββ templates β Custom twig templates.
β ββ partials β Components & other partials such as HTML header, footer, GA, ...
ββ admin.CSS β Custom CSS sheet for administration.
ββ functions.php β Theme boostrap