Build a New PHPTemplate Theme
To create a new PHPTemplate-powered theme, we need to create the following files:
page.tpl.php
style.css
We'll also need a directory to hold them, so create a new directory and name it Bluewater
; this will be the home directory—and the name—of our new theme.
Testing during theme development is easiest if you have access to a development server. Unlike straight HTML, it is difficult to preview the PHP files. If you have access to a development server, go ahead and place the Bluewater directory into the sites/all/themes
directory. Next, copy into that directory a sample logo file we can work with and name it logo.png
—the default Drupal logo used in the themes included in the distro will work just fine.
Note
You can grab a copy from any of the default themes in the distro. Typically, the logo can be found inside the theme directory and is named logo.png
, for example, themes/garland/logo.png
.