Support » Fixing WordPress » Cut off long URL’s in comments?

Viewing 6 replies - 1 through 6 (of 6 total)
  • This might help.

    thread .post {
    overflow: hidden;
    width: 100%;

    Regards

    Doh, I don’t know why I didn’t think of that…

    This doesn’t work with IE, though…

    “This doesn’t work with IE, though…”

    A lot of things don’t. Try playing with the width value, that is set it to something less than 100%, or provide an exact pixel width.

    True. I’m just letting folk know that the overflow: hidden doesn’t work in IE. A lot of things don’t work in IE, but a lot of our visitors use IE and we have to keep that browser in mind. Setting the width value didn’t get me what I wanted, so I just removed the “/”s from any URLs so that the line could break somewhere convenient. I’m using a recent comments plug in:
    http://mtdewvirus.com/

    I changed:
    $words = split(" ",$comment_content);

    to:
    $words = split("[ /]",$comment_content);

    So now it’s looking for a space or for “/” to count as the character between words. This has its drawbacks and I’d do better to install a proper plug in. It’s on my list of things to-do (research, research, research for the right plug in!); this fix worked for now.

    If you don’t mind a hacky plugin solution (hacky in the sense I’ve never been happy with it, but it works for the most part)…

    http://wordpress.org/support/topic/20778#post-119124

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Cut off long URL’s in comments?’ is closed to new replies.