Simple starter Wordpress theme built on the latest version of Twitter Bootstrap.
Twitter Bootstrap is an increadibly popular CSS framework. There are numerous
examples of using Bootstrap with a bare Wordpress theme as a getting started guide. All of these examples simply drop
in the complete compiled bootstrap.css file and then use the semantic grid and overrides to specify a design or theme.
This is how most users utilize Bootstrap, but it is most powerful when used as a CSS framework with a custom output.
This project utilizes Bootstrap as a framework where you start with nothing and then build up your design using the Bootstrap mixins. It uses grunt to build and watch and a copy of bootstrap as well as some examples to make it easy for you to build up your own Bootstrap based theme.
See help pages for:
You will need npm and grunt. Unpack this project as a theme directory in wordpress:
Install grunt:
$ npm install -g grunt-cliUnpack theme:
$ git clone --depth=0 http://www.github.com/nikcub/wordpress-boostrap <theme name>Install required npm modules:
$ npm installBuild CSS and Javascript:
$ grunt distThe core file that is built from is located in assets/style/style.less. In the template the element names are
#page for the entire page, #masthead for the top nav, #main for the main content and #sidebar for the
sidebar, if you include it.
Add the following to style.less and build:
#page {
.container();
}
#masthead {
.make-xs-column(12);
}
#main {
.make-xs-column(12);
}Bootstrap is 12 columns wide, so your column widths need to add up to 12
#page {
.container();
border: 1px solid red;
}
#masthead {
.make-xs-column(12);
}
#main {
.make-xs-column(8);
}
#sidebar {
.make-xs-column(4);
}You can include alerts and other features by uncommenting each line that includes those features
in style.less and then building.