How to add a new region to a theme in drupal

Hello Everyone!
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 ( in your code editor.

regions[left] = Left sidebar
regions[right] = Right sidebar
regions[content] = Content
regions[header] = Header
regions[footer] = Footer
regions[yourregion] = Your Region

add your region(like here i have added the yourregion) in info file and save the file.
You can now access you newely added region like give below

<div class="region andyregion">
<?php print $yourregion; ?>

Enjoy my blog!

95 Replies to “How to add a new region to a theme in drupal”

  1. I don’t normally look at these types of internet sites (I’m a pretty modest person) – but even though I was a bit shocked as I was reading, I was surely a bit excited as properly. Thanks for creating my day

  2. There are some fascinating closing dates on this write-up but I don’t know if I see all of them middle to heart. There’s some validity nonetheless I’ll take preserve opinion until I look into it further. Good write-up, thanks and we want extra! Added to FeedBurner as effectively

  3. Private Krankenversicherung – Nur dann, wenn Sie sich für die Absicherung über die Rentenversicherung entschieden haben, dann können Sie sich sicher sein, dass Sie im Alter so viel Geld haben, damit Sie Ihren Lebensstandard halten können.

  4. Wow, superb blog layout! How long have you been blogging for? you make blogging appear straightforward. The overall look of your site is magnificent, as effectively as the content! xrumer

  5. Thanks for all your valuable labor on this web site. Gloria delights in acquiring into investigations and it’s obvious why. Most people hear all concerning the dynamic method you present powerful guidelines on this web site and as nicely boost response from other individuals on the subject matter so our own daughter is truly studying plenty of points. Take pleasure within the remaining portion with the new year. You’re the 1 carrying out a splendid job.

  6. Keep in touch whilst functioning from your own home workplace with out all with the hassle of purchasing or procurment costly office equipment. Debtors are allowed to apply with their a bad credit score background whenever.

  7. I like what you guys are up too. Such clever work and reporting! Carry on the excellent works guys I have incorporated you guys to my blogroll. I think it’ll improve the value of my web site :).

  8. I truly wanted to post a brief comment to appreciate you for some with the remarkable ways you’re giving out on this site. My long internet appear up has at the end of the day been recognized with reliable data to talk about with my companions. I ‘d declare that most of us visitors are undeniably fortunate to live in a amazing location with extremely a lot of awesome professionals with fantastic techniques. I feel really significantly blessed to have encountered your entire web pages and appear forward to some more fun times reading here. Thanks once once again for all of the details.

  9. Good post. I discover out some thing far more challenging on different blogs everyday. Most commonly it really is stimulating to read content material utilizing their company writers and exercise a little something from their site. I’d pick to apply certain together with the content material on my own weblog regardless of whether you do not mind. Natually I’ll offer you a link within your internet weblog. Several thanks sharing.

  10. When I initially commented I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get three emails with the same comment. Is there any way you can remove me from that service? Cheers!

  11. An attention-grabbing dialogue is worth comment. I think that it is greatest to write extra on this subject, it won’t be a taboo subject even so normally individuals are not sufficient to speak on such topics. To the next. Cheers

  12. Soon after study a handful of the websites on your personal internet site now, and that i truly like your technique for blogging. I bookmarked it to my bookmark web site list and you will be checking back soon. Pls check out my internet page too and told me what you feel.

  13. Exceptional post nevertheless, I was wanting to know if you could write a litte far more on this subject? I’d be really thankful in case you could elaborate slightly bit a lot more. Thanks!

  14. Nice post. I learn something tougher on distinct blogs everyday. Most commonly it is stimulating to see content off their writers and use a bit there. I’d want to use some with all the content material on my blog whether you don’t mind. Natually I’ll offer you a link on the web weblog. A lot of thanks sharing.

  15. This is really interesting, You are a very skilled blogger. I’ve joined your feed and look forward to seeking more of your great post. Also, I have shared your web site in my social networks!

  16. Aw, this was a genuinely good post. In concept I wish to put in writing like this moreover ?taking time and actual effort to make an exceptional article?nevertheless what can I say?I procrastinate alot and by no means seem to get something done.

  17. We are a group of volunteers and opening a new system in our community. Your web website given us with valuable info to work on. You’ve done an impressive job and our entire community will probably be grateful to you.

  18. When I originally commented I clicked the -Notify me when new surveys are added- checkbox and already when a comment is added I get four emails with the exact same comment. Will there be in any manner you’ll be able to remove me from that service? Thanks!

  19. Thanks, I’ve recently been searching for info approximately this topic for a long time and yours could be the very best I’ve discovered till now. But, what about the conclusion? Are you positive concerning the source?

  20. Hello there, just became aware of your blog through Google, and located that it’s truly informative. I’m going to watch out for brussels. I’ll be grateful in case you continue this in future. Numerous people is going to be benefited from your writing. Cheers!

  21. Great day! This post could not be written any much better! Reading this post reminds me of my previous room mate! He always kept chatting about this. I will forward this write-up to him. Fairly certain he will have a very good read. Thanks for sharing!

  22. I just wanted to thank you once again for this incredible internet site you’ve got built here. Its full of valuable suggestions for those that are certainly interested in this subject, especially this very post. Your all so sweet and also thoughtful of others and reading the blog posts is a excellent delight to me. And thats a generous surprise! Jeff and I are going to have excitement creating use of your points in what we should do inside the near future. Our listing can be a distance long and tips is going to be put to fine use. Prishtina Reisen

  23. hey there and thanks in your information – I’ve definitely picked up something new from right here. I did then again expertise a few technical issues the usage of this web site, as I skilled to reload the web site lots of instances previous to I may just get it to load properly. I had been considering if your web hosting is OK? No longer that I am complaining, however sluggish loading cases times will often affect your placement in google and can harm your high-quality rating if ads and ***********|advertising|advertising|advertising and *********** with Adwords. Well I am adding this RSS to my e-mail and can look out for a lot extra of your respective fascinating content. Make sure you update this once more very soon..

  24. Thank you for sharing excellent informations. Your web-site is so cool. I’m impressed by the details that you have on this site. It reveals how nicely you perceive this subject. Bookmarked this website page, will come back for extra articles. You, my friend, ROCK! I found simply the information I already searched everywhere and just could not come across. What an ideal web-site.

  25. It’s rare for me to uncover something on the web that’s as entertaining and intriguing as what you have got here. Your page is sweet, your graphics are excellent, and what’s far more, you use source that are relevant to what you’re saying. You’re definitely 1 in a million, properly done!

  26. That is the greatest blog for anyone who desires to search out out about this subject. You comprehend so a lot its nearly exhausting to argue with you (not that I truly would need to have aHa). You positively put a brand new spin on a topic thats been written about for years. Fantastic stuff, merely great!

  27. Nice post. I learn some thing much harder on different blogs everyday. It will always be stimulating you just read content material from other writers and employ a specific thing at their store. I’d opt to apply certain utilizing the content material on my own weblog whether you don’t mind. Natually I’ll supply a link on your own internet weblog. Many thanks sharing.

  28. Great site you have here but I was wanting to know if you knew of any discussion boards that cover the same topics discussed here? I’d really love to be a part of community where I can get suggestions from other knowledgeable individuals that share the same interest. If you have any suggestions, please let me know. Cheers!

  29. Whats Going down i am new to this, I stumbled upon this I’ve found It positively useful and it has aided me out loads. I hope to give a contribution & help other users like its aided me. Good job.

  30. Thank you a bunch for sharing this with all folks you really recognize what you are talking approximately! Bookmarked. Kindly additionally discuss with my website =). We could have a hyperlink change contract between us

Leave a Reply

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