By asker99 on
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
All seem to be fine. Just
All seem to be fine. Just make sure to clear drupal cache (under settings > performance) for new changes to pick up.
Cheers,
Andrey
Drupal Sites Showcase. Add yours! | My Blog
You also would need to place
You also would need to place something (say a block) in the region for it to show up
Yes
Yes, but the region isnt even in the 'structure/block' place. So I can't insert any content into it
Fixed! :)
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!
I've done the same things and
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?
This might help
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...
can't get a new region to be displayed
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
ad
oke complete source coding is not necessary. what I mean is the coding where the new region coding is contained in.
thanks
overriding page.tpl.php
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).