O'Reilly logo

Drupal 7 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. By default the myzen theme contains the following regions:

  • Help
  • First sidebar
  • Second sidebar
  • Navigation bar
  • Highlighted
  • Content
  • Header
  • Footer
  • Page bottom

In this recipe, we will be looking to replace the existing footer region with two separate regions named footer top and footer bottom 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 ...

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