My first WordPress theme made with Sage. Live version.
See a working setup example at roots-example-project.
Make sure all dependencies have been installed before moving on:
- Run
yarn
andcomposer install
from the theme directory to install dependencies - Update
resources/assets/config.json
settings:devUrl
should reflect your local development hostnamepublicPath
should reflect your WordPress folder structure (/wp-content/themes/sage
for non-Bedrock installs)devSsl
which should be generated according to SSL Manual Guide
yarn start
— Compile assets when file changes are made, start Browsersync sessionyarn build
— Compile and optimize the files in your assets directoryyarn build:production
— Compile assets for production