Hi guys,
I am new in Omega world but I must say I am hooked already :) My first Omega sub theme project is porting of a Rocket Theme Crystalline Theme and its going quite well but, I got stuck at the header section because I need to style the Header Section and Header Zone separately so I created zone--header.tpl in addition to the section--header.tpl and added some div's for borders and overlays styles. For some reason its not working...there was no zone--header.tpl to have a look at so perhaps there is something wrong in my zone--header.tpl code because it just doesn't get passed on to the zone. Here is my code
zone--header.tpl
<?php if ($wrapper): ?><div<?php print $attributes; ?>><?php endif; ?>
<div<?php print $content_attributes; ?>>
<div id="wd-header-region">
<div class="shadow-left"><div class="shadow-right"><div class="shadow-bl"><div class="shadow-br">
<?php print $content; ?>
<div class="clear"></div>
</div>
</div></div></div></div>
</div>
<?php if ($wrapper): ?></div><?php endif; ?>
section--header.tpl
<header<?php print $attributes; ?>><div id="rt-main-header" class="header-shadows"><div id="rt-header-overlay" class="header-overlay"><div id="rt-main-header2"><div id="rt-header-graphic" class="header-graphic">
<?php print $content; ?>
<div class="clear"></div>
</div></div></div></div></div>
</header>
Any help would be most appreciated :)
Comments
Comment #1
Kristina Katalinic CreditAttribution: Kristina Katalinic commentedHey Guys,
this has been resolved without zone--header.tpl use
Comment #2
Kristina Katalinic CreditAttribution: Kristina Katalinic commentedComment #3
Kristina Katalinic CreditAttribution: Kristina Katalinic commenteddespite my best efforts to crack this on my own it really did not work.
Basically I need to apply different div's to my section-header and zone-header. I thought it would be an easy fix by creating zone--header.tpl.php file but, that does not work for some reason. When I create the file I can see the div's when inspecting zone-header with firebug but they are all collapsed/squeezed between the zone-header and zone-menu somewhere as if the zone--header.tpl and section--header.tpl cannot co-exist or something is wrong in my zone--header.tpl code?
can anyone please either confirm if section--header.tpl and zone--header.tpl cannot co-exist or if they can could you please tell me what is wrong with my code above?
Thank you :)
and btw once I am done I will be providing this sub theme for drupal community