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.
sick of everything having to be on the same row...
Please make this small change.
Allowing region items a column width of 0. With a width of 0 we get an extra div without disrupting the theme.
This div can be floated around with a little css to allow a more jaggit appearance to the theme.
Simple one liner.
remove the: unset($columns[0]);
diff --git a/alpha/includes/theme-settings-structure.inc b/alpha/includes/theme-settings-structure.inc
index a8670c7..d735bd3 100644
--- a/alpha/includes/theme-settings-structure.inc
+++ b/alpha/includes/theme-settings-structure.inc
@@ -14,7 +14,6 @@ function alpha_theme_settings_structure(&$form, &$form_state) {
$options = alpha_zone_options($theme->zones);
$columns = $spacing = !empty($containers) ? alpha_column_options(max(array_keys($containers))) : array();
- unset($columns[0]);
array_pop($spacing);
$form['alpha_settings']['structure'] = array(
Comments
Comment #1
Cellar Door CreditAttribution: Cellar Door commentedI'm not sure what this update to core would do for the sites already in production (though theoretically they shouldn't be sloppy enough to leave 0 columns in their settings).
I'm just not sure how this achieves anything though. You can override the floats of the regions, add clears and use absolute/relative positioning to achieve non-linear layouts with still being able to keep the grid and columns in-tact on objects.
Himerus?
Comment #2
steverweber CreditAttribution: steverweber commentedYes you can float regions around but.. You cant float items in regions and still use the full width of the screen /easily/.
lets say screen has column width of 2. And I have 2 items with width 1. The first item will take 1/2 the screen and #2 item be floated above the first item. Sadly the first item wont fill the full row because its width is 1.
If we allow item #2 to have a with of 0 then I found it simple to have item #1 fill the full row and float item #2 above.
I hope I explained my self.. Or you can explain what i'm missing :)
Thanks