I don’t want my WP editor to remove br
and p
tags when I’m saving and I don’t want to install TinyMCE to achieve it. Just want to use br
and p
tags in WP default editor.
Is there a good way?
I don’t want my WP editor to remove br
and p
tags when I’m saving and I don’t want to install TinyMCE to achieve it. Just want to use br
and p
tags in WP default editor.
Is there a good way?
You must be logged in to post a comment.
Bit of a necro, but for the
<p>
tag you can add a class or perhaps another property.e.g.
<p class="nothing-relevant">Foo</p>
will not be stripped (using Gutenberg).
there are plugins that are more accurate, but you can just add these lines in
functions.php
See more info here