The most minimal WordPress theme starter ever :)
Designed for learning.
Download and extract the zip for this repository, or git clone it, into your wp-content/themes folder.
YOUR_WORDPRESS_FOLDER
├── wp-content
│ ├── themes
│ │ ├── LearnPress
│ │ ├ ... other themes
You want to end up with a LearnPress folder inside wp-content/themes.
From your WP dashboard, go to Appearance > Themes.
You should (if you have followed the previous step correctly) see LearnPress among the available themes.
Click Activate.
Such as jQuery, HTML5 Boilerplate, Skeleton, Bootstrap etc.
To add a library (say, jQuery) to this project, we would normally do the following:
- Search for it on the Web
- Download the right file(s)
- Extract them into the right folder..
- Rinse and repeat for each library we may use!
To avoid these repetitive tasks, we can use a tool called bower which will automate the chores for us. What’s so great about bower?
If you haven't installed bower yet, follow the instructions below and then come back here.
- Open Terminal (Mac) or a CommandPrompt (Windows).
-
Navigate to the
LearnPressfolder -
Type in
bower installand press the↲(Enter) key
Bower will install the dependencies listed in bower.json.
If all goes well, you should end up with a new bower_components folder containing html5-boilerplate and skeleton-css
LearnPress
├── bower_components
│ ├── html5-boilerplate
│ ├── skeleton-css
-
If you're getting a
ECMDERR Failed to execute ...error:git config --global url."https://".insteadOf git:// -
If you're getting a
git is not installed or not in the PATHerror in Windows, follow these steps
LearnPress comes with HTML5Boilerplate and Skeleton.
Let's say you want to add Bootstrap.
bower install bootstrap --save
The --save bit will add the Bootstrap dependency to your bower.json
Check libraries.io for even more libraries.
Bower is a command-line tool, so you'll use the following application, depending on which system you are:
| Mac | Windows | Linux |
|---|---|---|
| Terminal | CommandPrompt | Terminal |
Don't fear the command line :)
Once you've opened Terminal / CP:
-
Download and install Node.js
Go to nodejs.org and download the installer for your operating system.
Install it..
To check if you have Node.js installed:
- In Terminal / CP, type
node -vand press the↲(Enter) key. - If Terminal / CP shows a number, like
v0.10.26then it means you have version 0.10.26 installed.
- In Terminal / CP, type
-
Install Bower
In Terminal / CP, type
sudo npm install -g bowerand press the↲(Enter) key.Terminal / CP will ask you for your computer's password (that's because of the
sudo, which means super user do, running commands with special powers)To check if you have bower installed:
- Type
bowerand press the↲(Enter) key - If Terminal / CP shows a number, like
v0.10.26then it means you have version 0.10.26 installed and you're good to go, unless you're on Windows, in which case read on..
- Type
-
If you're on Windows, download and install msysgit.





