Columns DIY

from 0$

Columns DIY is a WP Plugin Package from the Open Source WP Plugins range Simple shortcodes for div-based columns and rows. Wrap desired content in [column][/column]. Mark the end…


For more information about a tailored WP Plugin Package like Columns DIY please contact us directly.

This plugin is intended for theme developers and others who want to have full control of their column styles while still providing a quick and easy framework for adding/editing column content via WordPress’s visual editor. It eliminates the need to type tedious, unmanageable chunks of HTML into the editor when specific posts or pages require a columnar layout.

That said, this plugin is not plug-and-play. It does not include any styles out-of-the-box, so if you start using the shortcodes without adding appropriate CSS rules, there probably won’t be any visible changes to your content.

See the Recipes page on the GitHub wiki for some styling examples.

Usage

  • Designate each column with [column] and [/column]
  • Mark the end of a row with [endrow]

Features

  • Includes enumerated column and row classes, allowing for per-column and -row styling. Also includes parity classes (odd/even) for striping.
  • If a user forgets to add the last [endrow] shortcode, the plugin will automatically insert a closing </div> so the site layout doesn’t get broken.
  • Cleans up errant <p> and <br /> tags that result from WordPress’s wpautop() function.
  • All parameter inputs are escaped for security.

Example

Putting this into the visual editor:

[column]

This is the column of Foo.

[/column]

[column]

This is the column of Bar.

[/column] [endrow]

Will result in this output:

This is the column of Foo.

This is the column of Bar.

Parameters

The following optional parameters can be added to the [column] shortcode:

  • class (String : ”)
    Classes for the column <div> element. Separate multiple classes with spaces.
  • rowclass (String : ”)
    Classes for the row <div> element. Only works when included with the first [column] shortcode in a row.
  • style (String : ”)
    Inline styles for the column <div> element.
  • rowstyle (String : ”)
    Inline styles for the row <div> element. Only works when included with the first [column] shortcode in a row.
  • norow (Boolean : false)
    Set to true to omit the row wrapper <div>.

Filters

The following filter hooks can be used to alter the output of the shortcodes:

  • diy_colclass
  • diy_colstyle
  • diy_column
  • diy_rowclass
  • diy_rowstyle
  • diy_beginrow
  • diy_endrow

Download & install the zip archive

The plugin package installer can be downloaded from the WP2E project tab called “code”.

1 – Select the version to download if this option is available otherwise the “latest” version of the main plugin will be used.

2 – After downloading the zip archive install the plugin package installer in you local environment and activate the script from the plugin list.

3 – Under the section “Plugins” of the admin dashboard you should see a new “Dependencies & Licenses” link. Follow the instructions from this panel to finalize the installation of the missing dependencies.

Tips: Use the WP2E panel to add/suggest new dependencies to the local installation. Press F5 in the list of dependencies if the changes are not displayed right away.

Columns DIY

typePlugin
versionlatest
descriptionSimple shortcodes for div-based columns and rows. Wrap desired content in [column][/column]. Mark the end…