- The Radical Moderate - http://www.radmod.com -

Long unbroken words break Wordpress layout - Fix with word_wrap.php plugin

Category = WordPress

Preventing long words from breaking the Wordpress 2.0 layout - Fix with word_wrap.php plugin

Plugin to force loooooooooooong words to wrap in Wordpress, so they don’t break the display layout - word_wrap.php

I had a problem with comments breaking the display when a commenter would copy and paste a HUGELY LONG URL STRING into the comment window. Then I found the word_wrap.php plugin. Problem seems to be solved, and long url strings wrap nicely within my layout.

ISSUE: The word_wrap.php plugin issues two commands to ADD FILTERS. One of the filters is for post-content, and the other filter is for comments.

I have NOT had any problem with post-content containing long words that break my layout. After all, it is I myself who types the text for post-content. But it’s my visitors who write comments, and they can BREAK MY F’n layout !!!!

I was reluctant to add another filter to the post-content. I didn’t want the extra risk that something might go wrong when I saved a post, or something go wrong and prevent users from seeing any posts.

And so, I deleted the line of code from word-wrap.php that adds the filter for post-content.

Since my post-content display wasn’t broken, I wasn’t gonna “fix” it.


Article printed from The Radical Moderate: http://www.radmod.com

Click here to print.