svtaylor-p6/startmeup

Wordpress library based on Timber.

1.0.1 2024-02-05 22:02 UTC

This package is auto-updated.

Last update: 2024-04-30 17:53:20 UTC


README

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.
  4. Install ACF Pro plugin. (Errors will be thrown until the plugin is installed). For more information on the theme have a look at the README.md in the theme directory.