WordPress.org

Support

Support » How-To and Troubleshooting » 2.1 breaks my code

2.1 breaks my code

  • WP2.1 is inserting rogue <p> element openers into my posts, breaking their XML validity. This:

    <div class="figure"><a href=""><img src="" alt="" /></a>
    Caption text</div>

    turns into this:

    <div class="figure"><strong><p></strong><a href=""><img src="" alt="" /></a>
    Caption text</div>

    I could turn the div elements into paras, but that wouldn’t be semantic and causes IE (including 7) to screw up the font size. There must be a better solution…I’d like a little help! :p

  • The topic ‘2.1 breaks my code’ is closed to new replies.
Skip to toolbar