We will be covering the following recipes in this chapter:
Understanding the anatomy of a theme
Creating a subtheme based on a core theme
Overriding base theme elements in a subtheme
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
One of the more prevalent adages with respect to Drupal development and theming is:
Do not hack core!
Modules, themes, and other files that come with a stock Drupal installation should never be edited directly. In other words, we really should not need to modify anything outside the sites
folder of our installation as it is designed to contain all our changes and customizations. The reasoning behind this is that most, if not all, aspects of core are accessible and modifiable through a clean and non-invasive process...