G'day All,

Just wondering how I can get a block above the content/stories on my website?

Kind Regards
Jordan

Comments

MacRonin’s picture

You can create another Region (similar to navbar-left, content, header, footer and navbar-right)

Details at:

http://drupal.org/node/29139 Regions in PHPTemplate
http://drupal.org/node/134973 Adding new region to Garland Theme

-------------------
http://www.PrivacyDigest.com/ News from the Privacy Front
http://www.SunflowerChildren.org/ Helping children around the world

davemybes’s picture

One solution you can do is to add a new line to your page.tpl.php file, just above where you see print $content:

print $abovecontent;

Then, in template.php define this as a new block area (change themename to your theme's name) e.g.:

function themename_regions() {
  return array(
    'right' => t('right sidebar'),
    'content' => t('content'),
    'header' => t('header'),
    'footer' => t('footer'),
    'abovecontent' => t('above content'),
  );
} 

Now, in the admin > blocks, you will see 'above content' as a new region to add blocks.

______________________________________________________________________________________________________
Need help? Check the FAQ and the Handbooks first.

______________________________________________________________________________________________________

general need’s picture

^ that was simple , and worked perfectly.