Hey,

love the theme, looks really good. Is it possible to have a block beside the banner though? At the moment you either have to have the banner or your own block. It would be really cool if you could set the banner width to 50% and float right in the css and have say, a news block beside the banner.

Can this be done?

Cheers!

Comments

shruti.sheth’s picture

Hi,
Yes, it is possible to have a block besides banner.
The following can be one of the ways of implementing this.

1. Add the following code in your .info file

regions[header_left_block] = header left block

2. Add the following code in your page.tpl.php above the <div id="header-images"<?php print ($usebanner == 0) ? 'class="unlimited"' : ""; ?>>

	 <?php if($page['header_left_block']): ?>
      <div class="header-left-block">
	 <?php print render($page['header_left_block']); ?>
      </div>
      <?php endif; ?>

3. Add the following css code in your layout.css

.header-left-block {
  float: left;
  width: 50%;
}

4. In your slideshow.css file replace the code for #header-images with the one below


#header-images{
	display: block;
	float: right;
	position: relative;
	z-index: 2; /* under primary menu but over content wrapper (z-index=1) */
	width: 50%;
	height: 320px; /* image image height */
}

Enable the blocks you required besides banner in header left block region.
Hope this helps!

Thanks,
Shruti