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

Cosmin Hodis-Mindras’s picture

After fiddling a bit, I found that changing region.tpl.php to

<?php if ($content): ?>
	<div class="l-region--<?php print $region;?>-wrapper">
		<div<?php print $attributes; ?>>
			<?php print $content; ?>
		</div>
	</div>
<?php endif; ?>

... works OK. I wonder if there's a more elegant solution, though.