|
|
Search Disabled Temporarily
|
|
Libertarian DemocratA Libertarian Democrat is vigorously pro-personal liberty, and believes government can play a constructive role in regulating our economy and providing a social safety net. Categories:
About
Help Beta Test:
Credits:
Internal Links:A Moderate Motto:"Few things in life are as good or as bad as they seem in the emotions of the moment." |
Preventing long words from breaking the Wordpress 2.0 layout - Fix with word_wrap.php pluginI 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.
END of article
One Response to “Long unbroken words break Wordpress layout - Fix with word_wrap.php plugin”Leave a ReplyYou must be logged in to post a comment.
PREVIOUS post in SAME category as this post:
Showing only the single latest post on the Wordpress front page, and excluding some categories of posts
The RM is a "Libertarian Democrat"A Libertarian Democrat is vigorously pro-personal liberty, and believes government can play a constructive role in regulating our economy and providing a social safety net. |
Lawyers Must
Speak Out! We must keep our ears tuned to the degeneration toward tyranny. Recent Rants:
Links:Politics
Anti-Theocracy
Media Watchdogs
Misc
|
August 29th, 2008 at 7:20 pm
This is very useful, thanks.
You can easily alter how many characters to wrap after by changing one of the first few lines.