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!


Sr. Software Engineer

Tagged with: , , ,
Posted in Drupal
95 comments on “How to add a new region to a theme in drupal
  1. Sheldon says:

    this is awesome blog! i really love this blog

  2. Habibi says:

    I love this blog!

  3. Micheline says:

    i really enjoy your blog. thanks for sharing your thought. you are great guy

  4. Habibi says:

    Lawyers […]here are some links to web sites that we link to because we feel they’re worth visiting[…]

  5. I dont normally look at these types of internet sites (Im 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

  6. Hobert Denna says:

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

  7. Burl Fagan says:

    Wow i like yur web site. It actually helped me with the details i wus searching for. Appcriciate it, will bookmark.

  8. I am constantly searching online for posts that can facilitate me. Thx!

  9. I conceive this website has very great indited content material material posts.

  10. Leon Camm says:

    You produced some decent points there. I looked on the net to the issue and identified a lot of people go together with together along with your web site.

  11. Private Krankenversicherung – Nur dann, wenn Sie sich fr die Absicherung ber die Rentenversicherung entschieden haben, dann knnen Sie sich sicher sein, dass Sie im Alter so viel Geld haben, damit Sie Ihren Lebensstandard halten knnen.

  12. Thank you for the good writeup. It if truth be told was once a entertainment account it. Look advanced to far delivered agreeable from you! By the way, how can we be in contact?

  13. Leif Trax says:

    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

  14. Vena Rimando says:

    Thanks for all your valuable labor on this web site. Gloria delights in acquiring into investigations and its 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. Youre the 1 carrying out a splendid job.

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

  16. Gemma Rain says:

    I see something truly unique in this internet site.

  17. A extremely informationrmative post and lots of actually honest and forthright comments made! This undoubtedly got me thinking a whole lot about this problem so cheers a lot for dropping!

  18. Joan Eigner says:

    I went over this internet site and I conceive you have a lot of excellent information, saved to my bookmarks (:.

  19. I like what you guys are up too. Such smart work and reporting! Carry on the superb works guys I?ve incorporated you guys to my blogroll. I feel it will improve the value of my internet internet site

  20. Some truly good stuff on this web site, I adore it.

  21. Exceptional post nonetheless, I was wanting to know if you could write a litte a lot more on this subject? Id be very thankful in case you could elaborate a little bit more. Thanks!

  22. Inez Wimsatt says:

    I like this web site because so a lot valuable material on here : D.

  23. 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 :).

  24. Would enjoy to always get updated excellent web site !.

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

  26. Lane Thaker says:

    very excellent post, i surely enjoy this site, go on it

  27. Danita Laury says:

    I gotta bookmark this web site it seems really beneficial.

  28. Tiara Heuett says:

    You’ve talked some good info on the subject, are you working to do a FAQ about this issue inside the future, as i have some more doubts that is going to be common to other readers.

  29. I truly prize your function, Great post.

  30. 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. Id pick to apply certain together with the content material on my own weblog regardless of whether you do not mind. Natually Ill offer you a link within your internet weblog. Several thanks sharing.

  31. Alton says:

    I really love this blog!

  32. Berry Sainte says:

    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!

  33. Nga Hundemer says:

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

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

  35. Keila Gerosa says:

    I really enjoy studying on this site, it has got excellent content. “Something unpredictable but in the end it’s right, I hope you have the time of your life.” by Greenday.

  36. Habibi says:

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

  37. Hugo Bartch says:

    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. Id want to use some with all the content material on my blog whether you dont mind. Natually Ill offer you a link on the web weblog. A lot of thanks sharing.

  38. Wilda Denard says:

    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!

  39. Lydia Ajasin says:

    Hey, excellent weblog you have here, feel I came across it on Yahoo but im not certain nowanyway, Ill check back again! Are guests allowed to post here?

  40. Just wanna comment which you have a extremely good internet website, I really like the design it in fact stands out.

  41. Tracy Lelli says:

    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.

  42. 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. Youve done an impressive job and our entire community will probably be grateful to you.

  43. You must be a part of a contest 1st with the most effective blogs online. Let me suggest this weblog!

  44. There is noticeably a bundle to realize about this. I assume you made various good points in attributes also.

  45. Alica Valles says:

    I got what you intend, appreciate it for posting.Woh I’m lucky to discover this web site via google.

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

  47. Danny Sato says:

    Rattling good info can be found on website.

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

  49. Hello! Amazing post! Please when I could see a follow up!

  50. I like this blog it’s a master piece! Glad I found this on google.

  51. Woh I like your posts, saved to fav!.

  52. Roman Eddins says:

    Any way Im going to be subscribing for a feed and I hope you article once again soon

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

  54. Dead composed subject material, Really enjoyed looking through.

  55. Lonnie Mory says:

    I undoubtedly did not realize that. Learnt something new today! Thanks for that.

  56. Just wanna remark that you have a very nice web site, I like the layout it really stands out.

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

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

  59. hey there and thanks in your information Ive 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..

  60. I almost got an heart attac, due to your set of volume. Great stuff nonetheless!

  61. Darin Binks says:

    Just wanna comment on few general things, The website style and design is perfect, the content material is very great : D.

  62. Lydia Ajasin says:

    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.

  63. Dusty Dolbow says:

    Its superb as your other posts : D, regards for posting.

  64. Will Ramirel says:

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

  65. Marion Arata says:

    Quite good design and style and fantastic topic matter, really small else we want : D.

  66. I dont normally comment but I gotta say thankyou for the post on this remarkable 1 : D.

  67. Stewart Sheu says:

    Some truly nice stuff on this internet website, I like it.

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

  69. 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. Id opt to apply certain utilizing the content material on my own weblog whether you dont mind. Natually Ill supply a link on your own internet weblog. Many thanks sharing.

  70. Hi! Do you know if they make any plugins to safeguard against hackers? Im kinda paranoid about losing everything Ive worked hard on. Any ideas?

  71. Jacob says:

    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!

  72. I recognize there is a great deal of spam on this site. Do you require aid cleaning them up? I might aid in between courses!

  73. Marg Caison says:

    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.

  74. Lazaro says:

    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

  75. Phillipp says:

    No matter if some one searches for his necessary thing, so he/she desires to be available that in detail, therefore that thing is maintained over here.

  76. Solid post. I had not consider the linkage rule. I had been linking back and forth with out giving a believed. Thanks for your details.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Recent Posts
%d bloggers like this: