WordPress.org

Ready to get started?Download WordPress

Forums

WP Columns
Opening tag gets left out (1 post)

  1. ixley
    Member
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags