Howto - Theme add block regions

Theme files are in sites/all/themes/themename.

 

 

First of all you need to open the theme-name.info. In that file you are able to define your new regions like that.

The regions Content left/right are customized regions for the two new Blocks.

Now drupal nows the regions but it can not put content there because they are not implemented in the template files.


The next file what has to be edited is the page.tpl.php -> this name can be different by theme to theme because it depends on the template engine.

This file is normally a mix of php and html. Now we have to search the file for the position we want to place the regions.

Of formatting reasons we need to wrap the two reasons in tables so that they wont mix up with other content regions, because we want them next to each other.


Thats all to put in new regions in an existing theme.