Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Drupal 5 Themes

You're reading from   Drupal 5 Themes Create a new theme for your Drupal website with a clean layout and powerful CSS styling

Arrow left icon
Product type Paperback
Published in Dec 2007
Publisher Packt
ISBN-13 9781847191823
Length 260 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Toc

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.

Place the directory and basic files for our new theme, Bluewater, inside...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image