Hi guys,

Below is exactly what I have done to try to create a new region (for a copyright block), which unfortunately turned out unsuccessful:

1. I added 'regions[copyright] = Copyright' to the info file.

2. I added
.region-copyright {
}
to the layout-fixed.css and the page.css files.

3. I added ' print render($page['copyright']); ' into the page.tpl.php file.

That's all. I thought that this would be correct but evidently, it isn't. Can anyone help me? Thanks.

Comments

betarobot’s picture

All seem to be fine. Just make sure to clear drupal cache (under settings > performance) for new changes to pick up.

nevets’s picture

You also would need to place something (say a block) in the region for it to show up

asker99’s picture

Yes, but the region isnt even in the 'structure/block' place. So I can't insert any content into it

asker99’s picture

Okay I cleared my cache and it worked! Although for previous regions I created, I didn't need to clear it and they still appeared...
Anyway thanks betarobot and nevets!

willis30’s picture

I've done the same things and while I can get my new region to show up in the block list, nothing is actually displayed on the page. I put content within the block and still nothing. Any ideas?

asker99’s picture

What you can do is to go to the block list and just under the description there is 'demonstrate block regions'. Click on that and look for the name of your new region. If it shows up, your region should be functional...

rvdtuin’s picture

I experience the same problems
There is no new region visable in the block region demonstration.
Is it maybe possible to show the complete source coding of the 4 files your making changes in, so I can compare and see what I do wrong.

Thanks

rvdtuin’s picture

oke complete source coding is not necessary. what I mean is the coding where the new region coding is contained in.

thanks

rvdtuin’s picture

There was a page.tpl.php overriding the template I was editing.......
Now that I found out I've got it working!
(I am fairly new at drupal and zen (and css, php) so this gives me a great feeling. O and pardon my english its not my mother tongue).