THE THEME IS what your visitors see, it is the skin for your content, the GUI and design of your Web site. Creating a nice-looking design is one thing, translating it to something that WordPress can interpret is another. That is where the theme and its files come in.
This chapter is all about understanding the theme files, and then doing a few interesting things with them. It is the first step towards further development of your own theme, really.
I touch this briefly in Chapter 1, so you already know that your theme consists of at least one main stylesheet and some template files. The template files are PHP files containing the code snippets that you need to display your site's content. A few key template files are header.php, index.php, sidebar.php, and footer.php. And the functions.php template file is a bit different from the other ones; it really isn't displaying a part of your site, but rather adds functionality to it.
I rely on the Twenty Ten theme to show off these things in this chapter. Twenty Ten replaced the old default theme, formerly known as Kubrick, in WordPress 3.0; the Twenty Ten theme now ships as the WordPress ...