Back to Top

How to create Custom regions in Drupal

Create custom region in Drupal

Drupal is a popular Content Management System.In this tutorial, I will cover how to create custom regions in Drupal 7 themes.Regions in the drupal is same like positions in other cms which is used to define the position of content or block in front.

Drupal provides own pre-defined regions in a theme but sometimes, as per your requirement you want to create new own regions in drupal

So, let’s see how to do it.


1. Go to the theme front theme folder and open file and put the below code into it.

regions[bhumi] = Bhumi

You can change the above name of the region to the any desired name you want which looks like below screen in the admin.

admin with custom region

Keep in Mind If newly created region will not display in block section of admin, go to the appearance, select the theme and save the configuration.

2. Open your theme’s page.tpl.php file and here you need to place the relevant template tags.The regions are rendered using the function render() of Drupal

Like here, I have defined the region bhumi in my file, so I would add following line of code into the relevant place of page.tpl.php


After that region looks like the following screen in front.


Thank you for reading, good luck and let me know if you run into any problems & I’ll help as much as I can 🙂

Hope this post will helpful for you, waiting for your responses.Thanks for reading and feel free to share your thoughts! Don’t Forget to Follow us on Twitter or Subscribe us to Get the Latest Updates.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Most Popular Posts

How to set a Cookie in PHP

Posted on 7 years ago


How to add child product in VirtueMart

Posted on 6 years ago


Hello world

Updated 1 month ago

Nick Carter

In depth Understanding of Laravel Core

Updated 3 months ago


ECMAScript 6 New Features – 2

Updated 1 year ago


The Reader’s Poll – August 2014

Posted on 5 years ago


The Reader’s Poll – June 2014

Posted on 5 years ago


The Readers’ Poll – May 2014

Posted on 5 years ago