O'Reilly logo

Drupal 6 Theming Cookbook by Karthik Kumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. Beyond the Basics

We will be covering the following recipes in this chapter:

  • Understanding the anatomy of a theme
  • Creating a sub-theme based on a core theme
  • Overriding base theme elements in a sub-theme
  • Changing the screenshot image of a theme
  • Including a CSS file in a theme
  • Enabling CSS optimization
  • Creating the mysite module to hold our tweaks
  • Adding a CSS file from a module
  • Displaying a different theme for each day of the week
  • Creating a fresh look using the color module

Introduction

One of the more prevalent adages with respect to Drupal development and theming is:

Do not hack core!

Modules, themes, and other files which come with a stock Drupal installation should never be edited directly. In other words, we really should not need to modify ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required