• I am trying to use the column shortcode along with another shortcode, one that corresponds to the MaxButtons plugin. I formatted it like this:
    [one_half padding=”0 30px 0 0″]
    text
    [/one_half] [one_half_last]
    button shortcode
    [/one_half_last]

    But, when it appears on the site the columns are stacked on top of each other. The button appears below the text.
    If I try the same formatting, but with more text where my button is supposed to go, the columns work fine. Is there a way to fix this? To allow the button to appear in the column next the text.

    http://wordpress.org/plugins/column-shortcodes/

Viewing 1 replies (of 1 total)
  • If you put “padding-right” (the 30px in the shortcode you have) it will push the second column to the right (because the 1st column is no longer technically “half” the width – it’s “half + 30px” wide) but it has nowhere to go, so it gets pushed down the page – below the first column. This will only happen if you fill the page width with columns. I.e. 2x “half” columns, 3x “one third” columns, 4x “one fourth” columns.

    You should add margin-left to the button (the child element of the column) so that the button only gets moved to the right.

Viewing 1 replies (of 1 total)
  • The topic ‘shortcode within column shortcode not working’ is closed to new replies.