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

Customizing the sub-theme


The first question you need to ask yourself is: Do I need to customize the styling, or do I need to customize the structure? (Of course there is always the chance that the answer to both is 'yes.') We pose this question as it frames the next steps: If you only need to customize the styling, then you just need to look at working with the theme's CSS. Assuming that adequate selectors are already in place in the code, this means simply overriding some of the system's many styles. If, on the other hand, you need to customize the structure, then you are likely needed to override templates or themable functions.

Note

Note that the Drupal theme system caches template files, theme functions, and .info files. Accordingly, as you work on the theme and make changes to any of those elements, you should refresh Drupal's cache in order to see your change take effect immediately.

The process of customizing a theme into something new consists of a set of tasks that can be categorized...