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.
Unless I am missing something that already exists for this in the block.tpl.php , I think that there should be the ability to column size directly the the main block wrapper. If I have more than one block in a region and I want them to line up in a row (Ex. <div class="columns seven block-block1"></div><div class="columns five block-block2"></div>
) there is no way to add that.
Ideally for usability, it would be best to be able to set that when creating a block, right in the interface.
Thoughts?
Comments
Comment #1
Bcwald CreditAttribution: Bcwald commentedI realized the functionality I speak of can be achieved by http://drupal.org/project/block_class. This may be something you want to note in the documentation as as solution for adding multiple blocks in a single region.
Comment #2
ishmael-sanchez CreditAttribution: ishmael-sanchez commentedYou can easily do this using a preprocess function, there is a an example in STARTER/template.php
STARTER_preprocess_block
function. Also check out #1893720: Best way to use Foundation elements? which has some suggestion for implementing other elements besides blocks.@SweetCircus seems like you found a solution for this so I'm marking as fixed.