CHAPTER 2

image

Theme Anatomy and Template Hierarchy

This chapter looks at the anatomy of a WordPress theme, starting with the absolute bare minimum files needed for creating a theme, to creating templates, and to fully customize every aspect of your theme.

All WordPress themes can be found in the /wp-content/themes/ directory, with each theme located in its own folder (see Figure 2-1). In the latest install of WordPress version 3.7, you already have two themes available for use: Twenty Twelve and the latest version Twenty Thirteen.

Get Pro WordPress Theme Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.