Book Image

Drupal 7 Themes

By : Ric Shreves
Book Image

Drupal 7 Themes

By: Ric Shreves

Overview of this book

<p>Drupal is an award winning open source Content Management System (CMS). Based on PHP and MySQL, its power and flexibility combined with its exceptional design mean it is one of the most popular choices for creating a CMS website.</p> <p>Drupal employs a specialized templating system and supports themes, which allow you to change the look and feel of your system's front and back-end interfaces.</p> <p><em>Drupal 7 Themes</em> is an ideal introduction to theming with Drupal 7. If you want to create a striking new look for your Drupal 7 website, this book is for you. This book is a revised, updated and expanded edition of Drupal 6 Themes, rewritten specifically for Drupal 7.</p> <p>This book will show you techniques and tools to help you improve the look and feel of any Drupal 7-powered website. Starting from the basics of theme setup and configuration, you will learn about the Drupal theming architecture and the PHPTemplate engine, and then move on to modifying existing themes and building new themes from scratch. You will find out about tools to make your theme development easier.</p>
Table of Contents (17 chapters)
Drupal 7 Themes
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Identifying Templates, Stylesheets, and Themable Functions

Chapter 5. Customizing an Existing Theme

With the arrival of Drupal 6, sub-theming really came to the forefront of theme design. While previously many people copied themes and then re-worked them to achieve their goals, that process became less attractive as sub-themes came into favor. This chapter focuses on sub-theming and how it should be used to customize an existing theme.

For the purpose of illustrating the examples in this chapter, we'll be using the Bartik theme, which is included in the default Drupal 7 package. Among the topics we will cover:

  • Selecting a base theme

  • Creating a sub-theme

  • Customizing your sub-theme

We'll start by looking at how to set up a workspace for Drupal theming.

Setting up the workspace

Before you get too far into attempting to modify your theme files, you should put some thought into your tools. There are several software applications that can make your work modifying themes more efficient. Though no specific tools are required to work with Drupal themes, you could...