Drupal – Render region content

If the name of our custom region is header_left then put the following code into your page.tpl.php:

if ($page['header_left']):
    <div id="header_left">
        print render($page['header_left']);
    </div>
endif;

In your css file for example put the following css code:

#header_left {
    width: 200px;
    height: 100px;
    float: left;
}
Categories: Drupal Tags: , , , , ,
%d bloggers like this: