- Source: https://github.com/roots/roots
- Homepage: http://roots.io/
- Documentation: http://roots.io/docs/
- Twitter: @rootswp, @retlehs, @swalkinshaw, @Foxaii, @c2foryou
- Newsletter: Subscribe
- Forum: http://discourse.roots.io/
- Grunt for compiling LESS to CSS, checking for JS errors, live reloading, concatenating and minifying files, versioning assets, and generating lean Modernizr builds
- Bower for front-end package management
- HTML5 Boilerplate
- Organized file and template structure
- ARIA roles and microformats
- Theme activation
- Theme wrapper
- Cleaner HTML output of navigation menus
- Posts use the hNews microformat
- Multilingual ready and over 30 available community translations
Install the Soil plugin to enable additional features:
- Root relative URLs
- Nice search (
- Cleaner output of
wp_headand enqueued assets markup
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:
Reference the theme activation documentation to understand everything that happens once you activate Roots.
lib/config.php to enable or disable theme features and to define a Google Analytics ID.
lib/init.php to setup navigation menus, post thumbnail sizes, post formats, and sidebars.
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.
If you'd like to use Bootstrap Sass, look at the Roots Sass fork.
Install Grunt and Bower
Unfamiliar with npm? Don't have node installed? Download and install node.js before proceeding.
From the command line:
npm install -g grunt-cli bower.
- Navigate to the theme directory, then run
npm install. npm will look at
package.jsonand automatically install the necessary dependencies. It will also automatically run
bower install, which installs front-end packages defined in
When completed, you'll be able to run the various Grunt commands provided from the command line.
You will need write permission to the global npm directory to install
bower. You will also likely have to be using an elevated terminal or prefix the command with
sudo npm install -g grunt-cli bower.
We also advise against running as root user. NPM deliberately uses limited privileges when executing certain commands such as those included in the Roots post-install process, and when this happens to the root user, any file system objects that are not expressly writable by the root user will fail to write during the execution of the command. These might include directories such as
/home/someotheruser. If you're running as root and have problems, don't say we didn't warn you.
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
- 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 how Roots uses Grunt
- Roots Sidebar — Understand how to display or hide the sidebar in Roots
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
Use the Roots Discourse to ask questions and get support.