This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

No paragraph breaks wpautop within column shortcodes

  • Creator
    Topic
  • #7097
    viper
    Participant

    Hi, I don’t know if this is a bug or unique to my installation, but…
    When editing text within the column shortcodes in a page or post, it appears that any paragraph or line breaks are ignored. Even manually adding a in the html mode has no effect. All text seems to string together and ignore any keyboard returns or added paragraph breaks.

    Just wanted to share that.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • #7098
    Jason Bobich
    Keymaster

    Hello,

    Are you wrapping your columns shortcodes in the raw shortcode? If so, that is the design and purpose of that raw shortcode. You’d just want to avoid using that. But keep in mind that WordPress may put <p> tags between your columns; so make sure to be careful with your spacing of the shortcodes within the WP editor.

    #7100
    viper
    Participant

    Got it. What is the purpose of [raw] if it always interferes with text formatting by default?

    #7101
    Jason Bobich
    Keymaster

    Often people do not like WordPress’s automatic formatting in certain places — maybe it doesn’t work great with shortcodes you’re using, a block of custom HTML, etc. So, the raw shortcode allows you to escape that auto formatting in those select places if you want.

    #7102
    viper
    Participant

    Ok thank you.

    #12935
    Jason Bobich
    Keymaster

    An update to this topic: With the shortcodes plugin, there is now a “wpautop” parameter that can be used for column shortcodes. This will allow you to still wrap columns in the [raw] shortcode, while still allowing you to use wpautop within the columns.

    Example:

    [raw]
    [one_half wpautop="true"]
    This
    is
    some
    content ...
    [/one_half]
    [one_half wpautop="true" last]
    This
    is
    some
    content ...
    [/one_half]
    [/raw]
Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.