WordPress customization. Go!

Two goals today:

  • install WordPress locally
  • create a child theme

Install WordPress locally

I’ve actually got a local install of WordPress already. However, it’s currently my only backup copy of drunks.ca, and since I wasn’t smart enough to set it up as a child theme it’s quite an important backup. Luckily, there’s this excellent guide to remind me what I did the first time.

Since I’m currently on a Windows box (my iMac is scheduled to arrive tomorrow!), I followed these steps:

  1. I went into my install of XAMPP and unzipped a copy of the latest version of WordPress under htdocs. I named it steveshaw to keep it separate from the drunks install already there.
  2. I started XAMPP and went to http://localhost/phpmyadmin/ and then created a database named steveshaw.
  3. I went to http://localhost/steveshaw/ and it prompted me to create a wp-config.php file.
  4. I entered the following values:
    • Database Name: steveshaw
    • User Name: root
    • Password: (none)
    • Database Host: localhost
    • Table Prefix: wp_
  5. Allowed the WordPress install to run, enter a username and password for the site, and I was all set.

Note that the database user name and password fields were the default from the XAMPP install. I wouldn’t recommend using them on a publicly-accessible server.

Create a child theme

Everything that you need to know about creating a child theme is here. Here are the steps I followed:

  1. created xampp/htdocs/steveshaw/wp-content/themes/steveshaw directory
  2. created xampp/htdocs/steveshaw/wp-content/themes/steveshaw/style.css

The contents of style.css look like this:

/*
Theme Name: steveshaw
Theme URI: http: //steveshaw.ca/
Description: Theme for steveshaw.ca, child theme of Twenty Ten
Author: Steve Shaw
Author URI: http: //steveshaw.ca/
Template: twentyten
Version: 0.9
*/
 
@import url("../twentyten/style.css");

There are a couple of other files that I can put into the child theme directory, but this will do for now.

At this point, it’s just a matter of activating the child theme on the WordPress install. Select “Change Theme” from the dashboard and select the new theme.

After it works locally, upload the new theme to your production install and activate the theme there. So far there’s no difference between it and Twenty Ten, but we’re well sorted to begin customizations next time.

And speaking of next time, here’s what I want to start with:

  • remove all commenting ability
  • modify sidebar to remove admin links
  • put WordPress content on the front page of steveshaw.ca