Would it be possible to have a header region in Amity Island, to be able to display blocks?

Comments

shruti.sheth’s picture

Hello,
Yes, it is possible to have header region in Amity Island to display blocks.
One of the ways for doing that can be as follows,
1. Add the following code in your .info file

regions[header] = Header

2. Add the following code in your page.tpl.php inside the header-wrapper div and below the code <h2><?php print $site_slogan ?></h2> </div> <?php } ?> </div> <?php } ?>

   <?php if($header): ?>
     <div class="header-region">
	<?php print $header ?>
   </div>
     <?php endif; ?>

3. Add the following code in your style.css

.header-region {
  float: left;
  width: 100%;
  background: url(images/header-bg.png) repeat-y;
  height: 150px;
  margin: 12px 0;
}

The blocks to be displayed in this region can be enabled in header region in your admin/build/block.

Hope this helps!

Thanks,
Shruti.