Adding a custom region to myzen
Regions are essentially containers for Drupal blocks. The layout of regions in a page effectively dictates the layout of the site.
The myzen theme contains the following regions by default:
First sidebar
Second sidebar
Navigation bar
Highlighted content
Content top
Content bottom
Header
Footer
Page closure
In this recipe, we will be looking to replace the existing Content bottom region with two separate regions named Content bottom 1 and Content bottom 2 respectively.
Getting ready
We are going to assume that the myzen theme from earlier in this chapter is enabled and the current default. We will be updating the default page.tpl.php
template file that is used by myzen. If this file does not exist in sites/all/themes/myzen/templates
, it will need to be imported into this folder from sites/all/themes/zen/templates/page.tpl.php
.
How to do it...
First up, we will be updating the regions list in the .info
file.
Open the
myzen.info
file in an editor.Scroll down to the section dealing...