Hope you are doing well and enjoying my blog :)
I am here going to give you a small idea about region in drupal.
Regions in Drupal are defined by the theme layer. This is problematic in instances where you want to add blocks / boxes to a specific region that is theme independent. Some examples of when you would want to use this module:
- You want to place a top branding bar on your site that you can drop blocks into
- You create a feature that has context positioned blocks that should ALWAYS function a certain way
- You want an area that’s theme independent so you don’t need to worry about different devs ignoring theme region naming conventions
- You want to make admin-esk places for those tasks to exist without adding blocks to the layout of your design (changing the way it functions for some users over others)
By using a simple function call, additional regions can be added to the system.
How Add a New Region:
First of all you have need to open your theme info files (yourtheme.info) in your code editor.
regions[left] = Left sidebar regions[right] = Right sidebar regions[content] = Content regions[header] = Header regions[footer] = Footer regions[
] = Your Region
add your region(like here i have added the
) in info file and save the file.
You can now access you newely added region like give below
<div class="region andyregion"> <?php print $
Enjoy my blog!