Skip to content
forked from roots/sage

The best WordPress starter theme with a modern front-end development workflow. Based on HTML5 Boilerplate, gulp, Bower, and Bootstrap.

License

Notifications You must be signed in to change notification settings

diego-betto/sage

Repository files navigation

Build Status devDependency Status

Sage is a WordPress starter theme based on HTML5 Boilerplate that will help you make better themes.

Requirements

  • PHP >= 5.4
  • Node.js >= 0.10.0
  • gulp (npm install -g gulp)
  • Bower (npm install -g bower)

Features

Go further with Sage

Clean up WordPress

Install the Soil plugin to enable additional features:

  • Cleaner output of wp_head and enqueued assets
  • Root relative URLs
  • Nice search (/search/query/)

Modernize your WordPress stack

Bedrock gets you started with the best development tools, practices, and project structure:

  • Dependency management with Composer
  • Automated deployments with Capistrano
  • Easy environment specific configuration

Installation

Clone the git repo - git clone https://github.com/roots/sage.git and then rename the directory to the name of your theme or website.

If you don't use Bedrock, you'll need to add the following to your wp-config.php on your development installation:

define('WP_ENV', 'development');

Configuration

Edit lib/config.php to enable or disable theme features and to define a Google Analytics ID.

Edit lib/init.php to setup navigation menus, post thumbnail sizes, post formats, and sidebars.

Theme development

Sage uses gulp as its build system and Bower to manage front-end packages.

Install gulp and Bower

Unfamiliar with npm? Don't have node installed? Download and install node.js before proceeding.

From the command line:

  1. Install gulp and Bower globally with npm install -g gulp bower
  2. Navigate to the theme directory, then run npm install
  3. Run bower install

You now have all the necessary dependencies to run the build process.

Available gulp commands

  • gulp — Compile and optimize the files in your assets directory
  • gulp watch — Compile assets when file changes are made
  • gulp --production — Compile assets for production (no source maps).
  • gulp --tasks — Lists all the available tasks and what they do

Documentation

Sage documentation is available at http:https://roots.io/sage/getting-started/.

Contributing

Contributions are welcome from everyone. We have contributing guidelines to help you get started.

Community

Keep track of development and community news.

About

The best WordPress starter theme with a modern front-end development workflow. Based on HTML5 Boilerplate, gulp, Bower, and Bootstrap.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 56.3%
  • JavaScript 35.7%
  • CSS 8.0%