Code is adapted from the plugin ‘Columns’ by Konstantin Kovshenin.
Bootstrap is an HTML, CSS, and JS framework that is used to develop responsive, mobile websites. It employs a grid system that divides the viewport into twelve distinct columns. On desktops, the columns scale proportionally to the width of the viewing area while on mobile devices and tablets the columns stack on top of one another. This plugin takes advantage of that grid system to allow for WordPress content to be split up equally between the twelve columns.
To create a group of columns, use the [column-group] shortcode. To add columns to a group, use the [column] shortcode. For example:
[column-group] [column]This is the first column[/column] [column]This is the second column[/column] [/column-group]
The first column will occupy the first six columns of the Bootstrap grid while the second column will fill the remaining six.
The plugin’s columns can also be manually spanned across the Bootstrap grid. By adding the span attribute to the starting column shortcode, the number of Bootstrap columns that the WordPress columns take up can be assigned. For example:
[column-group] [column span=“4”]This is the first column.[/column] [column span=“6”]This is the second column.[/column] [column span=“2”]This is the third column.[/column] [/column-group]
The columns will take up four, six, and two of the Bootstrap columns respectively. Note: The span value is actually a ratio so if the total value of the spans in a column group does not equal twelve, then the plugin will assign the column sizes by means of percentage.
- Make sure that the current WordPress theme is built with Bootstrap.
- Download archive and unzip in wp-content/plugins or install via Plugins – Add New.
- Activate the Columns for Bootstrap plugin.
- Check the top of the Plugins page for any warnings.
- Begin using the [column-group] and [column] shortcodes.
There are no reviews for this plugin.
Contributors & Developers
“Columns for Bootstrap” is open source software. The following people have contributed to this plugin.Contributors
Interested in development?
- Replaced the deprecated wp_get_sites with get_sites
- First version