svtaylor-p6 / startmeup
Wordpress library based on Timber.
Installs: 24
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:CSS
Requires
- php: >=7.2.0
- timber/timber: 1.*
README
Wordpress site building with Timber and TailwindCSS.
Installation
- Go to your existing Wordpress site and create a new composer.json file in your root folder. Example
- Create
src\SITE
folder in your root folder. This is where all your site specific classes (post type definitions, blocks, commands, migrations, etc.) belong. - Run
composer install
to get PHP dependencies - Put this snippet into
wp-config.php
orfunctions.php
or a custom plugin to load the composer libraries
if (file_exists(__DIR__ . '/vendor/autoload.php')) {
require_once(__DIR__ . '/vendor/autoload.php');
}
- Run
composer run theme
to install the starter theme - Go into the new theme's folder and run
npm install
and thennpm run dev
to make sure your build system is working. - Activate the theme in Wordpress.
- 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.