Julien Melissas ea35b85da7 - fixing weird double negative thing on line 22
- using unpackages/unoptimized modernizr when in the WordPress development environment
2014-04-05 00:49:21 -04:00
2014-03-30 19:12:38 -05:00
2014-02-02 22:10:00 -06:00
2013-02-08 09:18:02 -06:00
2014-03-30 23:01:59 -05:00
2013-09-08 16:27:26 -03:00
2014-02-21 20:59:33 -06:00
2014-03-11 23:51:41 -05:00
2014-01-18 00:23:07 -06:00
2014-03-30 23:01:59 -05:00
2013-09-08 16:27:26 -03:00
2013-11-07 21:28:52 -06:00
2014-03-30 23:01:59 -05:00
2013-11-07 21:28:52 -06:00
2014-03-30 22:17:23 -05:00
2013-11-07 21:28:52 -06:00
2014-03-11 23:51:41 -05:00

Roots Theme

Built with Grunt

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

Installation

Clone the git repo - git clone git://github.com/roots/roots.git - or download it 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');

Theme activation

Reference the theme activation documentation to understand everything that happens once you activate Roots.

Compiling CSS and JavaScript

Roots uses Grunt for compiling LESS to CSS, checking for JS errors, live reloading, concatenating and minifying files, versioning assets, and generating lean Modernizr builds.

To use it, install the required dependencies as directed and then run some Grunt commands.

Install Grunt

From the command line:

  1. Install grunt-cli globally with npm install -g grunt-cli.
  2. Navigate to the theme directory, then run npm install. npm will look at package.json and automatically install the necessary dependencies. It will also automatically run bower install, which references dependencies in bower.json.

When completed, you'll be able to run the various Grunt commands provided from the command line.

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

Available Grunt commands

  • grunt dev — Compile LESS to CSS, concatenate and validate JS
  • grunt watch — Compile assets when file changes are made
  • grunt build — Create minified assets that are used on non-development environments

Configuration

Edit lib/config.php to enable or disable support for various theme functions and to define constants.

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

Documentation

Roots Docs

  • Roots 101 — A guide to installing Roots, the files and theme organization
  • Theme Wrapper — Learn all about the theme wrapper
  • Build Script — A look into the Roots build script powered by Grunt
  • Roots Sidebar — Understand how to display or hide the sidebar in Roots

Features

Features from Soil

  • Root relative URLs
  • Nice search (/search/query/)
  • Cleaner output of wp_head and enqueued scripts/styles
  • Image captions use <figure> and <figcaption>

Contributing

Everyone is welcome to help contribute and improve this project. There are several ways you can contribute:

  • Reporting issues (please read issue guidelines)
  • Suggesting new features
  • Writing or refactoring code
  • Fixing issues
  • Replying to questions on the forum

Support

Use the Roots Discourse to ask questions and get support.

Description
Customised by Bad Egg Digital
https://roots.io/sage/
Readme 12 MiB
Languages
PHP 46.6%
SCSS 29.7%
JavaScript 11.6%
Blade 11.6%
CSS 0.5%