Chapter 3: Exploring the Anatomy of a Theme

In This Chapter

  • Examining the theme's stylesheet
  • Exploring template tags
  • Making widget areas
  • Understanding the main template files

This chapter breaks down the parts that make up your WordPress theme. Understanding your theme allows you greater flexibility when you customize it. Many of the problems we see people encounter with their theme, such as not knowing which files edit certain functions of their site, comes from lack of understanding all the pieces.

There are those who like to get their hands dirty (present company included!). If you're one of them, you need to read this chapter. WordPress users who create their own themes do so in the interest of:

  • Individuality: Having a theme that no one else has. (If you use one of the free themes, you can pretty much count on the fact that at least a dozen other WordPress blogs will have the same look as yours.)
  • Creativity: Displaying your own personal flair and style.
  • Control: Having full control of how the blog looks, acts, and delivers your content.

Many of you aren't at all interested in creating your own templates for your WordPress blog, however. Sometimes, it's just easier to leave matters to the professionals and to hire an experienced WordPress theme developer to create a custom look for your WordPress Web site or to use one of the thousands of free themes provided by WordPress designers (see Chapter 2 of this minibook).

Creating themes does require you to step into the code of the templates, which can be a scary place sometimes — especially if you don't really know what you're looking at. A good place to start is to understand the structure of a WordPress blog. Separately, the parts won't do you any good. But when you put them together, the real magic begins! This chapter covers the basics of doing just that, and near the end of the chapter, you find specific steps to put your own theme together.

image You don't need to know HTML to use WordPress. If you plan to create and design WordPress themes, however, you need some basic knowledge of HTML and Cascading Style Sheets (CSS). For assistance with HTML, check out HTML 4 For Dummies, 5th Edition, by Ed Tittel and Mary Burmeister, or HTML, XML, and CSS Bible, 3rd Edition, by Bryan Pfaffenberger, Steven M. Schafer, Chuck White, and Bill Karow (both published by Wiley).

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.59.36.133