I was investigating the cause of hyperlinks breaking on a friend's website. She copies over her content from email and pastes it in the Wordpress editor. In a few articles, the content between the a tags has wbr in it and that seems to break the hyperlinks. You can find it on http://chandni.org/information-about-awards-scholarships-and-more/ In case it's fixed by the time you see the thread, the copied content

<a href="http://www.msrlm.org/mrlif/faqenglish.html" target="_blank">http://www.msrlm.org/mrlif/<wbr />faqenglish.html</a>

what is shown by wordpress

<a href="http://www.msrlm.org/mrlif/faqenglish.html" target="_blank" rel="external nofollow" title="" class="ext-link"></a><a href="http://www.msrlm.org/mrlif/" rel="nofollow">http://www.msrlm.org/mrlif/</a><wbr>faqenglish.html

I am guessing it's due to the fact that it uses and not . Should I replace the former with the latter? Looking for inputs from people who're familiar with wbr tag.

  • 1
    This sounds like a feature request/bugreport. Have you tried to contact wordpress.org for your support options in this case? Documentation of the WBR HTML tag is available here: developer.mozilla.org/en-US/docs/Web/HTML/Element/wbr – hakre May 25 '13 at 11:23
  • @hakre no, I haven't yet contacted wordpress support yet. I tried all the variations <wbr>, <wbr></wbr>, <wbr />. In all cases, the link gets broken. Definitely need to file a bug report. It may not be wordpress directly, it could be the TinyMCE editor. I'll figure it out and file a bug with appropriate project. Thank You. – mehulved May 27 '13 at 4:33

I just checked this on a test site. I added only this link to a post.

<a href="http://www.msrlm.org/mrlif/faqenglish.html" target="_blank">http://www.msrlm.org/mrlif/<wbr />faqenglish.html</a>

The result from the page source is:

<p><a href="http://www.msrlm.org/mrlif/faqenglish.html" target="_blank">http://www.msrlm.org/mrlif/<wbr />faqenglish.html</a></p>
  • Verify the site is using the latest WordPress version,
  • Temporarily disable all plugins to rule out a plugin conflict,
  • Switch themes to rule out a theme problem.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.