Drupal 5 Themes: Create a new theme for your Drupal website with a clean layout and powerful CSS styling
www.PACKTPUB.com  FREE ONLINE EDITION: Read full chapters online, download free samples from the book and more...
Book Contents Index > Chapter 6

Preface

1: The Elements of a Drupal Theme
2: Theme Set Up and Configuration
3: Working with Theme Engines Free Chapter
4: Style Sheets and Themeable Functions
5: Intercepts and Overrides
6: Modifying an Existing Theme
7: Building a New Theme
8:
Dealing with Forms

Appendix A


Index

Free Chapter:
Chapter 3: Working with Theme Engines [2.1 MB]

Contact us

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

     

 




View the book details
on PacktPub.com

 


 
  This website is owned and maintained by Packt Publishing Ltd, 2008. All rights reserved. Terms and Conditions