Create 3 column layout in Ebizon Redfire

This Comment will be submitted for moderation and will not be accessible to other users until it has been approved.


Ebizon Redfire is an elegant single column theme for Drupal 6. . In this article I will show how we can customize nad make it a three column theme

Its very simple and for that we will need to make changes to our page.tpl.php and style.css.

Changing Page.tpl.php
Look for following text in the page.tpl file

<?php print $content;?>

This is the main content are. We will paste our left block above this region. Use the following code

<?php print $left;?>


Changing Style.css
Now that we have our left block, next we need to style it.

For that we will make 2 changes in the style.css

  • Increase the width of our layout from 820px to 960px.
  • Add these style rules to the css file.

.leftblock
{
float:left;
padding-left:0px;
width:181px;
}

That's it... our theme is now capable to supporting 3 column layout.

                                     

Post Comment

  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.