• When I put a link inside heading tags, it adds a   on output, like so:
    <h3>My Title - <a&nbsp;href="https://example.com">A Link</a></h3>

    In the edit screen it looks fine…it’s just out output that it adds the  

    And it does it for any <hX> tags. Other tags (like <strong>) work fine.

Viewing 5 replies - 1 through 5 (of 5 total)
  • How exactly do you put the link in the header tag? Which one? If you mean for post titles, the links/permalinks are automatically added by WordPress.

    Thread Starter jpigford

    (@jpigford)

    I’m referring specifically to this being in the post body area. As in, right in an article I’m writing. So, not the article title, but rather within the content of the article itself.

    iridiax

    (@iridiax)

    Do the &nbsp; show up with typed in h3 content (not copy-pasted)?

    Thread Starter jpigford

    (@jpigford)

    It shows up no matter what I do (type it manually, paste, use the javascript buttons to insert it.

    And note, I am in HTML mode when I’m inputting this stuff…so I doubt it’s some weird tinymce issue.

    Thread Starter jpigford

    (@jpigford)

    Any ideas?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WordPress adding &nbps; to link tags in heading tags’ is closed to new replies.