wpautop extra tags…..
-
I am getting auto generated <p> tags.
The P tags contain 2 spaces in them…. <p> </p>
I know this is something related with TinyMCE.
We had an old plugin from “Preserved HTML Editor” installed and the problem started occuring. I removed the plugin and it was still auto generating P tags but with 1 space…. <p> </p>Now its generating 2 spaces <p> </p> and I don’t have a clue of fixing it..
I tried <?php remove_filter (‘the_content’, ‘wpautop’); ?> and it does not work for me..I would use this script as a temporary fix back when the P tags were single spaced…
<!– ?php remove_filter (‘the_content’, ‘wpautop’); ?–>
<script>
$(document).ready(function() {
$(‘p’).each(function() {var $ps = $(this);
if ($ps.html().replace(/\s| /g, ”).length == 0)
$ps.remove();
});
});
</script>Anyone know how to stop this from happening…
- The topic ‘wpautop extra tags…..’ is closed to new replies.