I am tired of WordPress’s horrible HTML editor and have decided to write all my html in Notepad++ and then just copy it over. However, simple line breaks "n"
that would be normally ignored in html are converted to <br />
tags. I have disabled the visual editor, so everything I save should be the exact html that is presented. But it’s not. how do I stop wordpress from converting my html?
Leave a Reply
You must be logged in to post a comment.
That’s handled by a filter called
wpautop
(declared inwp-includes/formatting.php
, line 189).You can remove it with this:
Toggle wpautop plugin.
It’s the most-popular solution I found, and works well for me. Above plugin page shows 10,000+ installs and 100% 5-star ratings (23 of them) as of 2016-05-21.
The description of the above plugin page:
jlengstorf’s answer does not appear to apply to my WordPress 4.x installs.