Placing blocks in the header does not work in IE or firefox.

Comments

Lioz’s picture

actually header has no regions.
you have to create extra regions to insert blocks inside it

Sam308’s picture

If there is no header region in the theme, why put the header as a region in the block area?

Is is difficult to create the header region? Would it be to add a little code somewhere?

Thanks you,

Side Note:
I have spent hours trying to make the Giordani theme resizable to fit the browser window, but I was only able to get the outer frame of the theme (the area outside the block areas) to resize to the browser window. I cannot get the center content or right side block areas to resize or move properly.

Is there a simple fix to this?

This is a great theme, but I would like to make it resizable to fit the browser window.

sorensong’s picture

Also really interested in knowing how to add block to header region. Some code examples would be awesome. Thanks.

DrupalSza’s picture

Agreed w/ @sam308 .
If no region, then why can we drop a block into that region?

Also agree w/ @sorensong .

Interested in learning how.

cayci’s picture

you can put print $header code into page.tpl.php file which is in your subtime directory

  <?php if ($site_slogan){?>
<p class="slogan"><?php print $site_slogan ?></p>
<?php } ?>



  </div>
 
         <?php if (($secondary_links)) : ?>
      

after that

  <?php if ($site_slogan){?>
<p class="slogan"><?php print $site_slogan ?></p>
<?php } ?>

<?php print $header ?> 

  </div>
 
         <?php if (($secondary_links)) : ?>
      

then

create a file named "block-header.tpl.php" in marinelli theme directory

<?php /*this is the top-banner block*/ ?>

 <div class="top-banner">
    
   <div class="top-banner"><?php print $block->content; ?></div>
</div> 

in layout.css
create a style for top-banner
example:

#top-banner {
  float: right;
  padding-top: 1px;
  margin-right: 35px;
  margin-top:1px;
  width: 728px;
  height: 90px;
}
wwwoliondorcom’s picture

Hi,

I also would like to but a block in the header, any help to do this without code, because I tried it and it doesn't work for me ?

Thanks.

Hestton5587’s picture

I tried this and it doesn't work. I also tried transplanting the footer block into the header, but that doesn't work either. Any more guidance?

Thank you.

Crappie101.com’s picture

I realized that if you are using sub-themes of this one, a folder is created with the sub-theme name in the primary themes folder. I my case the path was /sites/all/themes/marinelli/giordani. I made the changes to the files there and all was well.

Thanks.

kahemker’s picture

So, we don't have a solution to this issue yet... any new ideas? I just updated my website and my header block is not working now too. My temporary solution is to move my primary links which were in the header block to a sidebar, but I would like them in the header soon (the dropdown tabs worked well)

mgvanmiddelkoop’s picture

This works perfectly for me, I have used it to replace the standard header with a ddblock rotating images header.

technobrarygeek’s picture

If anyone still cares. I needed to add a mobile redirect to the Giordani version and my Header block region was there to add blocks to but had no region and thus did not work. I found the problem. In the page.tpl.php of the sub-theme you will find this:

  <?php print $head ?>
  <?php print $styles ?>

It should read:

  <?php print $header ?>
  <?php print $styles ?>

Made this minor typo change and it works like a charm.

oadaeh’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

This issue is being closed because it is against a branch for a version of Drupal that is no longer supported.
If you feel that this issue is still valid, feel free to re-open and update it (and any possible patch) to work with the 7.x-4.x branch.
Thank you.