|
Chapter 6:
Modifying an Existing Theme
In this chapter, we will put together the various techniques that we have covered and demonstrate how to modify and heavily customize an existing theme. The majority of people who get into Drupal themes tend to do so by modifying other themes and learning from them; and that's exactly what we're going to do in this chapter.
We will take an existing theme, look at how it works, then copy it and modify it until we have a very different looking theme. In this case, we will be building a fixed width, CSS-based, personal blog theme.
For the purpose of illustrating the examples in this chapter, we start with the Zen theme, which you can download from the Drupal site.
|
Chapter
6: Modifying an Existing Theme
- Setting Up the Workspace
-
Planning the Modifications
-
Cloning a Theme
- First Look at Zen/Tao
- CSS in Zen/Tao
- Themeable Functions in Zen/Tao
- Turning Zen into Tao
- Configuring the Theme
- Set Global and Theme Configuration Options
- Enable Modules
- Set User Access
- Create Dummy Content
- Set Up Menus
- Add New Regions
- Enable and Configure Blocks
- Position Blocks
- Adapting the CSS
- Setting the Page Dimensions
- Formatting the New Regions
- Fonts and Colors
- Formatting the Sidebars and Footer
- Formatting the Menus
- Formatting the Search Box
- Formatting the Comments Form and Output
- Adapting the Themeable Functions
- Modifying template.php
- Creating a New Template File
- Before and After
- Summary
|
|
Paperback 250 pages
Released: December 2007
ISBN: 1847191827
ISBN 13:
978-1-847191-82-3 |
|
|
|
|