• Resolved kathk

    (@kathk)


    This plugin doesn’t play well with other shortcodes when it comes to implied formatting generated from the WordPress editor. The implied formatting generated by the editor is lost when displayed within the column. It seems like this is a factor of also having other shortcodes within the column’s content.

    To reproduce the issue:
    Create 3 columns.
    Add three lines of content (e.g. Name, Address, Phone).
    At the beginning of each row, add a shortcode (I’m using Better Font Awesome).
    I also have a shortcode at the end of the first row.

    When this content is shown outside of your columns, the content nicely displays as 3 rows. When shown within your columns, the line breaks are removed and its all one row.

    Unfortunately there is no workaround for this that I can find, your plugin removes even hardcoded BR tags in this scenario.

    Thoughts on how to work around this?

    https://www.ads-software.com/plugins/genesis-columns-advanced/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Nick Diego

    (@ndiego)

    Good morning Kathy,

    Thank you for catching this. I was able to replicate the issue. This seems to occur whenever the shortcode is at the end of the row with no markup afterwards. So the following strips all the line breaks:

    [one-half-first]
    
    [icon name="coffee"]Place your content[icon name="coffee"]
    [icon name="coffee"]for the first column here.[icon name="coffee"]
    [icon name="coffee"]Testing Testing.[icon name="coffee"]
    
    [/one-half-first]
    [one-half]Place your content for the second column here.[/one-half]

    But the following does preserve the line breaks:

    [one-half-first]
    
    [icon name="coffee"]Place your content
    [icon name="coffee"]for the first column here.
    [icon name="coffee"]Testing Testing.
    
    [/one-half-first]
    [one-half]Place your content for the second column here.[/one-half]

    I will investigate what is causing this and work on a fix. In the meantime, one possible workaround (not a great one I know), is to add some markup after the last shortcode, like a period of colon. So for example the following preserves the line breaks:

    [one-half-first]
    
    [icon name="coffee"]Place your content[icon name="coffee"]:
    [icon name="coffee"]for the first column here.[icon name="coffee"]:
    [icon name="coffee"]Testing Testing.[icon name="coffee"]:
    
    [/one-half-first]
    [one-half]Place your content for the second column here.[/one-half]

    Sorry for the trouble!

    Nick

    Thread Starter kathk

    (@kathk)

    Thanks for the suggested work around, Nick! I actually stumbled upon this myself, I just wrapped the first row in a div tag and cleaned itself up. Thanks for responding so quickly! You’ve built a very easy to use plugin, thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Formatted content with Shortcodes’ is closed to new replies.