-
Book Overview & Buying
-
Table Of Contents
Drupal 7 First Look
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.
The .info file tells Drupal about your theme including the name of the theme, a description for the theme, and the .css and JavaScript files that make up the theme. Let's look at the Garland.info...
Change the font size
Change margin width
Change background colour