A [column] shortcode for creating columnized content.
This plugin has one function and one function only — to make columns. You use it by inputting content between [column]
and [/column]
within your post content editor (or anywhere shortcodes are allowed).
Grid Columns was created to fix the problem in which many theme developers were adding 20+ column shortcodes to their themes for something that should be extremely simple and done with only a single shortcode.
If you need professional plugin support from me, the plugin author, you can access the support forums at Theme Hybrid, which is a professional WordPress help/support site where I handle support for all my plugins and themes for a community of 40,000+ users (and growing).
If you’re a theme author, plugin author, or just a code hobbyist, you can follow the development of this plugin on it’s GitHub repository.
Yes, I do accept donations. If you want to buy me a beer or whatever, you can do so from my donations page. I appreciate all donations, no matter the size. Further development of this plugin is not contingent on donations, but they are always a nice incentive.
grid-columns.zip
folder.grid-columns
folder to your /wp-content/plugins
directory.grid-columns.zip
folder.grid-columns
folder to your /wp-content/plugins
directory.Many theme developers add several column shortcodes to their themes (note: this isn’t allowed on WordPress.org). Essentially, the theme developers are doing a few things wrong:
This plugin allows you to switch between any theme (no lock-in to your current theme). It was also developed with WordPress standards and usability in mind.
You can find more detailed instructions in the plugin’s docs/readme.html
file.
Everything is based on a grid. By default, this grid is “4”. So, you can set up four columns like so:
[column grid="4" span="1"]Some content[/column] [column grid="4" span="1"]Some content[/column] [column grid="4" span="1"]Some content[/column] [column grid="4" span="1"]Some content[/column]
You’ll notice that each “span” is equal to the number of columns in the grid. So, if the span is “1”, it’s equal to one column. If the span is “2”, it’s equal to two columns. You can only have as many spans/columns as the grid allows. Therefore, grid="4"
means you can only have four columns.
If you need a more detailed guide, see readme.html
, which is included with the plugin. It has a few examples and explains everything.
Most likely, it’s because you either have too many spans or not enough spans for your grid. Make sure each span
argument for your [column]
shortcode equals exactly the grid
argument.
If you’re absolutely sure you’re math is correct, it could be a conflict with your theme. It’d be impossible for me to know without seeing it in use on your site, so you’ll either need to ask on my support forums or get your theme developer to help.
Yes. Absolutely. Just make sure each grid has the correct number of columns before starting a new one.
No. This is a limitation of how WordPress handles shortcodes.
Yes, you can. However, keep in mind, that I can’t guarantee that your plugin developer knows what he’s doing and created his shortcode correctly. But, yes, you can do this with properly-coded shortcodes.
It’s possible, but you’ll probably break something. I recommend against attempting this.
wpautop()
, which sometimes adds empty <p>
and extra <br />
tags.&
when adding an action/filter.gc_column_content
filter hook and use it to apply formatting.