O'Reilly logo

Drupal 6 Theming Cookbook by Karthik Kumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required