WordPress.org

Ready to get started?Download WordPress

Forums

Comments Text-Runoff (5 posts)

  1. mattnaugle2
    Member
    Posted 9 years ago #

    Hello Folks- I am trying to add the text of my comments to the front of my site. It works- but if someone copy and pastes a long link to a news article, it runs from outside the side bar. Is there a way to make text that is too long to run into the next line?

  2. Kafkaesqui

    Posted 9 years ago #

    One way: place the comment contents in div using a css class with an overflow:hidden property, so any text which goes beyond the width of the div will *disappear*:

    .home_comment {
    overflow: hidden;
    width: 250px;
    }

    Using overflow: auto; would also work by placing comment text in a scroll-able frame.

    But if you'd like a method for actually breaking the text up, let me know as I have an experimental plugin that does just this.

  3. Franzilla
    Member
    Posted 9 years ago #

    http://www.coffee2code.com/archives/2004/07/08/plugin-auto-hyperlink-urls/

    I've used that to truncate links, works like a charm :)

  4. mattnaugle2
    Member
    Posted 9 years ago #

    Thats an awesome plugin! Thank you :-)

    But thanks to Kafkaesqui as well- I am a newbie with css so that is some good info. I shall use it as well. Thanks :-)

  5. freshpolitics
    Member
    Posted 9 years ago #

    That plugin isn't working for me, and so I'm having some of the same issues.. a long hyperlink throws my whole design out of whack

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.