Chapter 13: Editing Themes to Customize Your Site

As you’ve traveled through this book, you’ve taken a look at every significant feature that WordPress offers and used those capabilities to build a variety of sites. However, you’ve always played by the rules, picking themes from the theme gallery, installing plugins from the plugin directory, and sticking to the safety of the WordPress admin area. But a whole other world of possibilities awaits those who can color outside the lines.

The key to unlocking more flexibility and building a truly unique WordPress site is to create your own theme. As you know, a theme is a mash-up of HTML markup, formatting rules, and PHP code. Ordinarily, WordPress hides these details from you. Instead, the people who create the themes and plugins your site uses handle all this, while you focus on writing fab content and adjusting settings in the admin area. But if you decide to cut loose and customize your own themes, you step into a different world. Be forewarned: this world can seem dizzyingly complex. But you don’t need to understand every detail. Instead, you simply need to find the parts of a theme you want to change and work on those.

In this chapter, you’ll start your journey by taking a close look at how themes work, and you’ll learn how to make small alterations that can have big effects. First, you’ll try modifying styles. Then, you’ll crack open a theme’s template files to change the code inside.

The Goal: More Flexible Blogs and Sites ...

Get WordPress: The Missing Manual, 3rd Edition 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.