Skip to content

Wordpress starter theme based on Timber 🌲 🎨

License

Notifications You must be signed in to change notification settings

circul8/wordpress-starter-theme

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Wordpress Starter Theme

Packagist

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.

Installation

  1. Using Circul8 Wordpress Stack
    1. composer create-project circul8/wordpress new-project
  2. Using Bedrock or normal Wordpress installation
    1. Navigate to /web/app/themes/ or /wp-content/themes/
    2. Run git clone [email protected]:circul8/wordpress-starter-theme.git
    3. Run composer install

Dependencies

Templating system

Templating is done by Timber plugin which uses Twig.

Custom filters

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"

Plugins

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.

Directory structure

β”œβ”€ 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

About

Wordpress starter theme based on Timber 🌲 🎨

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 53.4%
  • HTML 45.8%
  • CSS 0.8%