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.
How can I add full width wrappers around regions - ex:
<div class="l-region--highlighted-wrapper">
<div class="l-region l-region--highlighted">
// REGION CONTENT
</div>
</div>
I guess that I have to edit the region.tpl.php file, but I don't know how to catch the wrapped div class and add "-wrapper".
Comments
Comment #1
Cosmin Hodis-Mindras CreditAttribution: Cosmin Hodis-Mindras commentedAfter fiddling a bit, I found that changing region.tpl.php to
... works OK. I wonder if there's a more elegant solution, though.