Apr 07 10

Class: WordPress and Themes

Installing WordPress

Read detailed instructions here, or follow along in class.

Installing Themes

Download the Learn theme for WordPress: go to http://github.com/gordonbrander/learn and click “Download Source” toward the top-right of the page.

Take the theme folder (learn/) and put it into your wp-content/themes/ directory.

About Themes

Learn is an ultra-simple theme for learning WordPress theming, with lots of comments throughout.

The simplest possible theme looks like this:

  • my-theme/
    • index.php
    • style.css

The folder contains all of the theme files and can be named anything you want (avoid spaces and special characters, though). I’ve used my-theme as an example. index.php does pretty much what you would expect—it’s the default page that is loaded. style.css contains styles, but also a special CSS comment that tells WordPress about your theme.