Convert any webs ite layout or template into a Drupal theme - easily!
Drupal.org | ysereyboth.blogspot.com
Convert any website layout or
template into a Drupal theme -
easily!
Task · How to convert website to Drupal
theme · Themers · Drupal 5.x · Drupal 6.x ·Incomplete
Last modified: December 16, 2009 - 00:47
Theming for Drupal is not actually as hard as you may think.
Certainly there are more advanced areas of theming possible
with Drupal, which may or may not be necessary depending on
the needs of your site or whether there are subtle defaults
which you wish to change (and which you can learn about if
and when they become necessary for your site). Creating the
"overall theme" for your site though is very simple.
A Drupal theme is nothing more than a standard website
layout, with a few bits of PHP code added in certain places,
which you can simply copy/paste into place in order to call up
Drupal's "dynamic" content and features in those spots.
If you learn better visually, videos are available which cover
much of the same information that will be illustrated
here: Static Theme Conversion or Acquia Webinar.
Contributed/downloaded themes are more complex than
"your" theme needs to be
You may have looked at various pre-made themes that either
come with Drupal core or are available for download, and
sighed with frustration upon seeing their code. To some, the
code looks very confusing.
Keep in mind that those themes have been created to address
the needs of many people. The themes must be able to handle
all kinds of scenarios, which means they have been designed
to allow you to dynamically add various columns and other
layout elements, and to support custom theming for features
and modules which you might not even need. These themes
usually include a large amount of PHP code that essentially
says, "If this setting is true, then show this part
this way, or else show that." This makes the theme
very flexible, but also very complicated.
However, your theme doesn't need to work