Skip to content

johannez/tendril

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tendril

Wordpress site building with Timber and TailwindCSS

Installation

  1. Go to your existing Wordpress site and create a new composer.json file in your root folder. Example
  2. Create src\SITE folder in your root folder. This is where all your site specific classes (post type definitions, blocks, commands, migrations, etc.) belong.
  3. Run composer install to get PHP dependencies
  4. Put this snippet into wp-config.php or functions.php or a custom plugin to load the composer libraries
if (file_exists(__DIR__ . '/vendor/autoload.php')) {
  require_once(__DIR__ . '/vendor/autoload.php');
}
  1. Run composer run theme to install the starter theme
  2. Go into the new theme's folder and run npm install and then npm run dev to make sure your build system is working.
  3. Activate the theme in Wordpress. For more information on the theme have a look at the README.md in the theme directory.