WordPress.org

Forums

Shortcodes Ultimate
How does the Collumns shortcode work? (4 posts)

  1. magden
    Member
    Posted 2 years ago #

    I'm trying to figure out a simple 2 collumn layout and I can't seam to figure out how this thing works.

    This is the code it spits out:
    [column size="1-2" last="0" style="0"]Column content[/column]

    How does this work? I'm used to "half and last half" codes.

    http://wordpress.org/extend/plugins/shortcodes-ultimate/

  2. frikafrax
    Member
    Posted 2 years ago #

    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]
  3. pikkabbu
    Member
    Posted 1 year ago #

    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 ;-)

  4. Vladimir Anokhin
    Member
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Shortcodes Ultimate
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags