Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
system.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Aug 2010 at 14:58 UTC
Updated:
11 Sep 2010 at 21:33 UTC
Currently, core adds a wrapper to regions, even if they are empty.
For example, this is the region page_top:
<div class="region region-page-top">
</div>
This is added by printing the variable $page_top, called from html.tpl.php (inside system module folder). To reproduce, just visit the front page without being logged in. It is not a Bartik or Garland issue, because it happens in all themes.
Gabor and I thought of a few places to fix this bug, but all seemed impossible to use:
My only solution was to add a check in region.tpl.php. Ideally, we should do this in an early phase, but couldn't find where to solve this. If anyone has a better solution, please jump in!
| Comment | File | Size | Author |
|---|---|---|---|
| empty_region_wrappers.patch | 638 bytes | BarisW |
Comments
Comment #1
seutje commentedsubscribe
Comment #2
BarisW commentedComment #3
dawehnerI cannot reproduce the problem on a clean drupal7 installation.
Comment #4
BarisW commentedI see that is has already been fixed.
The code in region.tpl.php is now:
The
if($content)is new, and does the same as my proposal.