I'm trying to add a new region, so as to place a couple of new blocks into it.
I have read this http://drupal.org/node/171205 and this http://drupal.org/node/171224 informtion on how to create new regions in 6.x themes. But it looks like Pixture theme is following a different logic when it comes to defining regions.

So, what do I need to do in order to create a new region above the header search-box?

Please help.

Many thanks in advance...


Jeff Burnz’s picture

It does things the normal way, just follow the guides.

Pixture does not declare any regions in the .info file because it does not use any regions other than the defaults. You need to add them in if you want to add new ones (the defaults + your new regions).

Jeff Burnz’s picture

Status:Active» Closed (fixed)
rick@pixeldirt’s picture

I am using the Pixture theme as well and I have successfully created a new region above the header...I used it for a search box.

To add a new region you need to do the following:

First: go to pixture_reloaded.info

Next: add this to the regions: regions[aboveheader] = aboveheader (I put it at the top of the list)

* It should look as such:

; The regions defined in the page.tpl.php files. The name in
; brackets is the name of the variable. The text proceeding the
; = sign is the short description you see on the block configuration
; page.

regions[aboveheader] = aboveheader
regions[header] = Header blocks
regions[superfish] = Superfish menu
regions[content_top] = Content top
regions[content] = Content
regions[content_bottom] = Content bottom
regions[left] = Sidebar left
regions[right] = Sidebar right
regions[footer] = footer

After that you want to go to this file: page.tpl.php

I entered in the following code: if (!empty($aboveheader)):

print $aboveheader;


You need to place the above code right after

rick@pixeldirt’s picture

Oh almost forgot you also need to go to Permissions and check the boxes otherwise it doesn't show in IE....good luck.

Superheidi’s picture

Hm. I am trying to add in a new block region called ABOVECONTENT in Bluemarine in Drupal 6.8 with no luck.

I added in:

In Bluemarine.info

regions[left] = Left sidebar
regions[right] = Right sidebar
regions[content] = Content
regions[footer] = Footer
regions[abovecontent] = Above Content

and inside page.tpl.php:

if ($abovecontent):

print $abovecontent;


But nothing show up in my Admin area as a new region.

Am I doing something wrong? Let me know! I would love to create my own regions.... thanks in advance!

rick@pixeldirt’s picture


Okay, first you need to literally put the "above content" above the region content, like such:

regions[left] = Left sidebar
regions[right] = Right sidebar
regions[abovecontent] = Above Content
regions[content] = Content
regions[footer] = Footer

Not below the footer otherwise it will print below the footer.

next you have to go to both css files and and enter the whatever style changes you want....below is just an example...remember to change it in both css files not just one:

Enter the following in the Content (or whatever section is relevant to the region you want to change) section:
#Above Content {
padding: 0;
height: 0;
width: 400px;
float: right;
margin-top: 5px;
margin-right: 0;
margin-bottom: 0;
margin-left: 0;

Hope that helps.

Superheidi’s picture

ahh okay, so , I need to edit style.css, and the left-to-right css file as well?

Thanks for this! I feel lame I didn't think of listing abovecontent ABOVE the content... but, hey. I'm learning.

newtodrupal21’s picture

thx a lot for your post....exactly what i needed. Searched the whole day and couldnt find a simple solution. nicely documented too....very easy to follow for a newcomer like me.
Also, one more piece of info, the [theme].info file contents are cached in the database, due to which my region was not getting displayed. After clearing the cache from admin>siteconfiguration>performance and clicking on clear cached data it started showing.