Static HTML to Drupal Theme By Ivan Zugec
Static HTML to Drupal Theme. Setting up a theme. Overriding tpl files. Using the devel module. Q and A
Static HTML page
Required theme files and folders 1.Images folder 2.Page.tpl.php 3..info file 4.Style.css
Where do we save themes? sites/all/themes
.info file for your theme ; $Id$ name = rgdesign core = 6.x engine = phptemplate regions[left] = Left sidebar regions[right] = Right sidebar regions[content] = Content regions[footer] = Footer
Regions
page.tpl.php file
Page.tpl.php Replace this:
Page.tpl.php With this:
Page.tpl.php Replace this:
Page.tpl.php With this: if ($logo || $site_name) { if ($logo) { print ' '; } print ' '. $site_name.' '; }
Page.tpl.php if ($logo || $site_name) { if ($logo) { print ' '; } print ' '. $site_name.' '; } 'links primary-links')) ?>
Next regions
Left Side Bars With this: Replace this:
Right Side Bars With this: Replace this: Search
Footer With this: Replace this:
Content region
Important Variables
Important Variables