Drupal themes can consist of a multitude of files each with its own purpose, format, and syntax. This recipe will introduce each of these types with an explanation of what they do.
It will be useful to navigate to the Garland folder at themes/garland
to browse and view the files inside a typical, fully featured theme. Garland uses the PHPTemplate theming engine which is the default engine in Drupal 7.
The following table outlines the types of files typically found inside a theme's folder and the naming conventions to be followed for some of them:
Type |
Mandatory? |
Description |
---|---|---|
|
Yes |
Configuration file which provides information to Drupal about a theme named |
|
Varies |
Template files which allow the customization and styling of themable aspects of Drupal. These can either live at the root level of the theme or in a folder named templates. |
|
Yes |
A template file which determines... |