Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi guys,
For the life of me I am not able to figure out how to add a wrapper/container around just the content region.
I am creating a new subtheme based on the omega-html starterkit and leaving it quite default.
In my Content Zone I have a Sidebar First region followed by a Content region followed by a Sidebar Second region. Now I want to have a container around the Content region in the middle, but how?
region--content.tpl.php doesn't work unfortunately
Thanks,
Willem
Comments
Comment #1
wjroes CreditAttribution: wjroes commentedWell, apparently I was just looking in the wrong place. There is a region--content.tpl.php and it was in the right location as well. Duh!
I was looking in the alpha template section.
Comment #2
wjroes CreditAttribution: wjroes commentedNope. I was wrong (again). I am still missing the actual content region. The content is there but it is not being (pre)processed as a region. It doesn't show up in Debugging Block overview. This is with the omega-html5 starterkit, but it is the same with the other starterkits.
What's going on? Anyone seeing the same?
Comment #3
wjroes CreditAttribution: wjroes commentedMaybe this will help someone else running into this...
Apparently this missing region happens when using the fluid layout. Content elements are just dumped in the content region without a container around it. In my case, with a left and a right sidebar and content in between, this caused the right sidebar to indent and/or disappear.
Comment #4
cr0ss CreditAttribution: cr0ss commentedI'm getting the same issue with Omega 3. Sidebars are getting proper wrappers with specific classes, so they are getting rendered right.
Unfortunately content region doesn't get any wrapper and simply messing the content zone.
If there is a way to avoid this issue?
Comment #5
cr0ss CreditAttribution: cr0ss commentedJust found the issue for me and I believe it should be described somethere at Readme:
- Main page content block should be placed at content region in case you want to render it properly within Omega grid settings.
Elsewhere you'll just get a rendered content without any wrapper.
Comment #6
sagannotcarl CreditAttribution: sagannotcarl commentedI just came across this after doing some hair pulling. I agree that having this in the documentation somewhere would have been really helpful. There are step-by-step descriptions of grid settings but nothing about why node titles don't show up by default when looking at node pages.
Comment #7
muschpusch CreditAttribution: muschpusch commented+1 on having some kind of fix / documentation for this.
Comment #8
prorokxp CreditAttribution: prorokxp commented+1 have the same problem. views page in my frontpage does not wrapped with content region. why?
I noticed that if I add an extra block to the Content region, then there is no problem. Seems like omega does not sees content block in frontpage, but for some reason it outputs this block directly to the content zone. very strange.
comerce kickstart. default installation. omaga-html5 starterkit.
Comment #9
prorokxp CreditAttribution: prorokxp commentedmy main page content block is placed in content region.. but i still have this problem. it appears only on frontpage. if page is not frontpage, then there is no such problem
Comment #10
bendikrb CreditAttribution: bendikrb commentedI had the exact same problem as #8 - and was about to go completely nuts before I saw this in commerce_kickstart.install_callbacks.inc:
This was not reflected when I checked admin/structure/block/manage/system/main/configure, but just saving the block one time fixed the problem.