bigspring / monolith

A starter theme for WordPress built with Twitter Bootstrap
MIT License
9 stars 1 forks source link

Columns shortcode #239

Closed juliotaylor closed 9 years ago

juliotaylor commented 9 years ago
//shortcode for bio column structures
function columns_shortcode($atts, $content = null) {
    global $post;
    return '<div class="columns">' . do_shortcode($content) . '</div>';
}
add_shortcode('columns', 'columns_shortcode');

A shortcode allowing content to be laid out into two or more columns. Should be extended to allow a choice of columns per breakpoint.

jrgmartin commented 9 years ago

@simonpmiles and I agreed it is still useful so we've left it in place. It needs documenting though.

juliotaylor commented 9 years ago

I think we need to extend it too, to decide how it'll work exactly (for example ability to choose # of columns).

Let's leave it in there undocumented, and we can expand it for 2.1 or later