Project:Marinelli
Version:6.x-2.96
Component:Miscellaneous
Category:task
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

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:

http://www.domsyard.com

I would like the banner block to appear to the left of the domsyard.com logo.

Comments

#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 sidebar
regions[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:

<?php
function *****_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.php from th Marinelli folder to my subtheme folder and then creating block-banner.tpl.php

I 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;
}

#3

The subtheme folder you were referring to, is that the folder you created? Can you post the directory structure and the files you have created?

Thank you

nobody click here