Reputation: 5095
So I have a Bartik sub-theme that I am using for my website. Now the idea is to add a custom region to this theme. I am following the process described below:
This does not work and the custom region does not appear when I check for it.
I did the same for the Bartik theme (that is the default provided theme) and it works fine, meaning the custom region appears where it ought to be.
So what's fishy here? : p
Thanks guys!
Upvotes: 1
Views: 336
Reputation: 378
You shouldn't need the apostrophes. Also, you should define the region as "regions" - so try this in your .info file:
regions[custom_region] = Custom Region
Good luck! :-)
Upvotes: 3
Reputation: 930
In page.tpl.php page insert:
<?php if ($page['custom_region']): ?>
<div id="custom_region">
<?php print render($page['custom_region']); ?>
</div>
<?php endif; ?>
And Flush all caches
Upvotes: 2