Drupal 7 makes several modifications to the files needed to build a theme. These changes are designed to make building themes easier and to make execution faster.
A high quality Drupal theme needs several key files to function properly including a .info
file, a page.tpl.php
file, a template.php
file, .css
files, and JavaScript files. Let's look at each of these files in detail. The files for a template are all placed in a directory named for the theme located in the sites/all/themes
directory. For example, if we were creating a new theme called Drupal 7 Rocks, we would start by building a directory called drupal_7_rocks
within the sites/all/themes directory. Now we can start to add files to that directory to start building the theme.