/tendril

Wordpress library and theme based on Timber

Primary LanguageCSSMIT LicenseMIT

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.