Add banner block to logo area?
dom_b - September 24, 2009 - 09:59
| Project: | Marinelli |
| Version: | 6.x-2.96 |
| Component: | Miscellaneous |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I am using the Alagna theme from Marinelli and would like to add a block in which I can use rotating banners within the logo image. Is this possible? Here is my website:
I would like the banner block to appear to the left of the domsyard.com logo.

#1
I forgot to mention mine is a subtheme, so I do not have a template.php to edit. I found this info here:
http://drupal.org/node/163660
Where do I put the code that should go in template.php without editing the Marinelli theme code?
#2
I've now solved my problem. I've managed to create a region called banner and put a block in it by doing this:
Added these lines to my subtheme .info file:
regions[left] = Left sidebarregions[right] = Right sidebar
regions[content] = Content
regions[header] = Header
regions[footer] = Footer
regions[banner] = banner
Created a template.php file for my subtheme and added this:
<?phpfunction *****_alagna_regions() {
$regions = phptemplate_regions();
$regions['banner'] = t('banner);
return $regions;
}
Added this line to my page.tpl.php file:
<div id="banner"><?php print $banner; ?>
</div id="banner">
I removed the any block styling for that region by copying
block.tpl.phpfrom th Marinelli folder to my subtheme folder and then creatingblock-banner.tpl.phpI then moved the banner where I wanted by adding this to my sub themes css file:
#banner {float: left;
margin-top:20px;
margin-right:0px;
margin-bottom:0px;
margin-left:40px;
}