WordPress.org

Support

Support » Plugins and Hacks » How does the Collumns shortcode work?

How does the Collumns shortcode work?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The “last” parameter tells ShortCodes Ultimate whether the current column is the last column in a group of columns and if it IS the last column, start the next column on a new line.

    So if you want to have a two column lay-out, the first column’s “last” value would be “0” and the second column’s “last” value would be “1” since the second column would naturally be the last column in a two-column lay-out.

    Another way to think about it is that every column whose “last” parameter is “0” will cause the next column to appear adjacent to it, provided there is enough space.

    A column whose “last” parameter is “1” will cause the next column to start on a new line.

    For a two column lay-out, set the first column’s “last” parameter to “0” and the second column’s “last” parameter to “1”.

    e.g.

    [column size="1-2" last="0" style="0"]First column[/column]
    [column size="1-2" last="1" style="0"]Second column[/column]

    For a 3-column lay-out, the code would be:

    [column size="1-3" last="0" style="0"]First column[/column]
    [column size="1-3" last="0" style="0"]Second column[/column]
    [column size="1-3" last="1" style="0"]Third column[/column]

    I couldn’t give you a huger THANK YOU !

    I’ve been 2 hours tyrying to figure out how to get the second half-column on the right of the first one (and not just below).

    I do wonder how mucho it would cost to include this into the plugin’s documentation 😉

    Plugin Author Vladimir Anokhin

    @gn_themes

    Try to use this code

    [row]
    [column size="1-2"]First column[/column]
    [column size="1-2"]Second column[/column]
    [/row]

    If this code doesn’t helps, then you need to enable custom formatting at plugin settings page.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How does the Collumns shortcode work?’ is closed to new replies.