retlehs/roots — Issue #288: Grid Customization
Author: leoj3n
Created: 2012-02-19 18:51:44+00:00
State: open

The Twitter bootstrap grid can be customized easily via LESS: http://twitter.github.com/bootstrap/scaffolding.html#gridCustomization.

I think it would be cool if it was possible to customize roots' grid through the child theme. Essentially, I think it would be possible to have filters like `roots_gridColumns`, `roots_gridColumnWidth` and `roots_gridGutterWidth` (siteWidth would be computed automatically from the previous 3 variables).

The code in the child theme would be, for example: `add_filter( 'roots_gridColumns', 'childtheme_gridColumns' );` where the `childtheme_gridColumns` function receives the default value (of 12) and returns an integer (just like any other WordPress filter).