Information Technology Reference
In-Depth Information
14
Figure 14.7
Arclite is a
popular
theme, with
a clear style
sheet too.
note
If you want to build a theme from scratch, you need the right tools. As with writing web pages with plain HTML,
there are many tools available to you for writing CSS. You can write CSS with any plain text editor, including
Windows Notepad. Many web page editors, from Adobe Dreamweaver to the free cross-platform KompoZer
application, have specialized CSS editors. There are even a few dedicated CSS editors out there, led by the pop-
ular Top Style.
Header Comments
To write a new theme, you have to start with a fresh file. In whatever editor you choose, open a
new file, and save it as style.css . We will walk you through the Arclite stylesheet as an example.
Start the style sheet with some information about you and the theme. This is done through a com-
ment at the top of the file. In a happy coincidence, in both CSS and PHP, comments are separated
by the /* start symbol and */ to close. In between the start and close symbols, you'll find the
following:
Theme name
Date last updated
Author, with link to website
License under which the theme is released, usually the GNU General Public License (GPL) or
another open source license
Search WWH ::




Custom Search