dev-master
9999999-devCanvas is a WordPress starter theme based on HTML5 Boilerplate & Bootstrap that will help you make better themes.
GPL-3
The Requires
- php >=5.4.0
- composer/installers ~1.0
by Greg Haddow
Canvas is a WordPress starter theme based on HTML5 Boilerplate & Bootstrap that will help you make better themes.
Canvas is a WordPress starter theme based on HTML5 Boilerplate & Bootstrap that will help you make better themes., (*1)
Install the Soil plugin to enable additional features:, (*2)
/search/query/
)wp_head
and enqueued assets markupClone the git repo - git clone git://github.com/haddowg/canvas.git
- or download it and then rename the directory to the name of your theme or website., (*3)
Edit lib/config.php
to enable or disable theme features and to define a Google Analytics ID., (*4)
Edit lib/init.php
to setup navigation menus, post thumbnail sizes, post formats, and sidebars., (*5)
Canvas uses Grunt for compiling LESS to CSS, checking for JS errors, live reloading, concatenating and minifying files, versioning assets, and generating lean Modernizr builds., (*6)
Unfamiliar with npm? Don't have node installed? Download and install node.js before proceeding., (*7)
From the command line:, (*8)
grunt-cli
and bower
globally with npm install -g grunt-cli bower
.npm install
. npm will look at package.json
and automatically install the necessary dependencies. It will also automatically run bower install
, which installs front-end packages defined in bower.json
.When completed, you'll be able to run the various Grunt commands provided from the command line., (*9)
N.B.
You will need write permission to the global npm directory to install grunt-cli
and bower
. You will also likely have to be using an elevated terminal or prefix the command with sudo
, i.e., sudo npm install -g grunt-cli bower
., (*10)
We also advise against running as root user. NPM deliberately uses limited privileges when executing certain commands such as those included in the Canvas 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 /var/www
or /home/someotheruser
. If you're running as root and have problems, don't say we didn't warn you., (*11)
grunt dev
— Compile LESS to CSS, concatenate and validate JSgrunt watch
— Compile assets when file changes are madegrunt build
— Create minified assets that are used on non-development environmentsCanvas is a WordPress starter theme based on HTML5 Boilerplate & Bootstrap that will help you make better themes.
GPL-3