WordPress.org

Support

Support » Plugins and Hacks » [Plugin: WP Columns] Opening tag gets left out

[Plugin: WP Columns] Opening tag gets left out

  • This seems to be some sort of conflict with the TinyMCE editor. Any entry with columns that starts with a paragraph (as opposed to a header or some other tag), ends up with a missing opening <p> tag at the beginning of any column (meaning it doesn’t get recognized and formatted the way it should).

    <div class="column column-1 column-first">Paragraph 1</p>
    <p>Paragraph 2</p></div>
    <div class="column column-2 column-last">Paragraph 3</p>
    <p>Paragraph 4</p></div>
    <div class="column-clearfix"></div>

    Anyone else have this problem?

    * UPDATE: I was able to fix the problem with a little hack. By adding an opening <p> tag to the inserted column code on line 48 (v1.0), it seems to correctly append it for paragraphs but will not insert it if the first element is a non <p> tag. Again, I’m guessing this has more to do with how WP detects where to place <p> tags, so I’m not sure if there’s a less ‘hacky’ fix or not.

    $content .= "<div class=\"{$class} {$class}-$columnindex{$columnClass}\"><p>";

  • The topic ‘[Plugin: WP Columns] Opening tag gets left out’ is closed to new replies.