WordPress keeps auto inserting a
tag after an anchor link in the HTML editor, and it is driving me nuts. How do I get it to stop?
example:
<h2>Custom Event</h2>
<a name="custom"></a>
Thanks.
WordPress keeps auto inserting a
tag after an anchor link in the HTML editor, and it is driving me nuts. How do I get it to stop?
example:
<h2>Custom Event</h2>
<a name="custom"></a>
Thanks.
Anyone? Bueller?
edit functions.php, add this:
remove_filter('the_content', 'wpautop');
Try this plugin WP BR Tags. This will disable wpautop() from running.
WordPress’s built-in post/text editor (TinyMCE), executes a back-end filtration process which removes empty tags, and
tags from the post, when switching from the “Visual” to “HTML” tab in the editor in WordPress or vice-versa.
WP BR Tags Allows you to insert [Short-Code] instead of <html> codes, the result is TinyMCE won't mess with your code, and You get to have Line Breaks where you want them!
I hope this helps,
Rich
You must log in to post.