Roots is a WordPress starter theme based on HTML5 Boilerplate & Bootstrap.
Roots is a WordPress starter theme based on HTML5 Boilerplate & Bootstrap that will help you make better themes.
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. Install Grunt, and then install the dependencies for Roots contained in package.json by running the following from the Roots theme directory:
npm install
If you’re using Nginx you’ll need to add the Roots rewrites to your server config before the PHP block (location ~ \.php$) to use the clean URLs feature:
location ~ ^/assets/(img|js|css|fonts)/(.*)$ {
try_files $uri $uri/ /wp-content/themes/roots/assets/$1/$2;
}
location ~ ^/plugins/(.*)$ {
try_files $uri $uri/ /wp-content/plugins/$1;
}
Reference the theme activation documentation to understand everything that happens once you activate Roots.
After you’ve installed Grunt and ran npm install from the theme root, use grunt watch to watch for updates to your LESS and JS files and Grunt will automatically re-build as you write your code.
Edit lib/config.php to enable or disable support for various theme functions and to define constants that are used throughout the theme.
Edit lib/init.php to setup custom navigation menus and post thumbnail sizes.
/wp-content/)/assets/*)wp_head and enqueued scripts/styles/search/query/)<figure> and <figcaption>Everyone is welcome to help contribute and improve this project. There are several ways you can contribute:
Use the Roots Discourse to ask questions and get support.