hi,

I was wanting to create a new region above the header in the zen theme. I want to be able to put blocks in this region.

What would be the best way to do this?

thanks in advance,
pessato

Comments

alakesh’s picture

Add a region to your theme.info file.
regions[headerTop] = Header Top

In your page.tpl.php, add the code -
<?php print $headerTop; ?>

Clear cahe and configure your block.

pessato’s picture

perfect, thanks mate!!

fonant’s picture

Just remember that the region's machine name has to work as a PHP variable name, so you can't use hypens (-) in the name. Underscores work fine :)

http://www.fonant.com - Fonant Ltd - Quality websites

arlingtonvoicellc’s picture

It's probably changed since this topic was posted, but the way you print Zen regions now is using the following format:

<?php print render($page['MACHINENAME']); ?>

Clear caches and your region should now be available on the blocks page. Maybe this will help someone.