Stop automatic insertion of line break
-
I am trying to “destyle” H1 – H6 tags in order to use them in my content a different way, but something buried in WP is automatically inserting a line break both before and after the tag, thwarting my efforts.
I am not using the visual editor, but I searched through tinyMCE config anyway and couldn’t find it (settings for force line breaks are set to false).
I suspect it is somewhere else in the includes files (default-filters.php or rewrite.php perhaps?) but still can’t find it.
I’m not a coder by any stretch, but I can read and understand much of it, and can make minor modifications if someone can tell me where to find this and remove it.
Ideally I’d like a solution that would exist in my own (theme’s) functions.php (using a remove_action) so I don’t have to re-fix this with each upgrade.
Can anyone please help me find where WP is rewriting Hx tags and remove this?
- The topic ‘Stop automatic insertion of line break’ is closed to new replies.