Ready to get started?Download WordPress


HTML Import 2
[resolved] Importing Style attribute while cleaning up HTML (2 posts)

  1. pulpcovers
    Posted 1 year ago #

    Is it possible to keep style attributes in cleaned HTML?

    For instance, I have an element
    <p style="padding-left: 30px;"><em>Some Text</em></p>

    After importing, the "p style" tag is missing, and the text is simply italicized. I have added <style> <p> to the Allowed HTML box, but the code is still stripped. Any suggestions?


  2. Stephanie Leary
    Plugin Author

    Posted 1 year ago #

    style needs to go in the attribute list, not the tags. The attribute field wasn't displaying in 2.3 because of a CSS issue. This is fixed in 2.4.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.