Skip to content
This repository has been archived by the owner on Oct 19, 2019. It is now read-only.

azdanov/wordpress-first

Repository files navigation

First · PRs Welcome GitHub license

My first WordPress theme made with Sage. Live version.

screenshot 2019-01-27 at 21 03 38

See a working setup example at roots-example-project.

Requirements

Make sure all dependencies have been installed before moving on:

Theme development

  • Run yarn and composer install from the theme directory to install dependencies
  • Update resources/assets/config.json settings:
    • devUrl should reflect your local development hostname
    • publicPath should reflect your WordPress folder structure (/wp-content/themes/sage for non-Bedrock installs)
    • devSsl which should be generated according to SSL Manual Guide

Build commands

  • yarn start — Compile assets when file changes are made, start Browsersync session
  • yarn build — Compile and optimize the files in your assets directory
  • yarn build:production — Compile assets for production

Documentation