Support » Themes and Templates » Comments with long URL’s crashing my theme?

  • Yep, it’s me again…

    Using a modified version Mike Little’s Journalized (Blue) theme with the 3-column design.

    Everytime somebody posts a comment with a long URL, it causes my middle column with the post’s content to widen and overlap the left-hand sidebar.

    Should I be looking for some sort of a plug-in to modify the long URL’s into a single link or something… or should I be looking to modify the CSS to fix it? Sorry – still a noobie, but learning tons, thanks to you guys and gals in this forum.

    Any help would be appreciated… I’m getting tired of logging onto my blog to see it’s all screwed up, then finding the comment containing the long URI, then manually editing the poster’s comment so it will stop causing the problem with the theme.

    Thanks in advance…

Viewing 2 replies - 1 through 2 (of 2 total)
  • whooami



    firefox does not wrap non-breaking lines of text. Unfortunately, if your putting a long url into a fixed with space, youre going to experience issues like that.

    Im guessing its possible to write a little plugin that checks for long urls and puts them in their own <div> so that you could do this:

    overflow:auto; white-space:nowrap; but short of that you’re pretty much stuck with it.

    theres another option, also.. to shorten urls using some extra code .. but ive only seen it work on urls that are clickable.

    Whooami – thanks for the quick response. I’m a newbie, so writing plugins is way ahead of me at this point. Are you saying that all I’d have to do is add:

    overflow:auto; white-space:nowrap;

    somewhere in my CSS template and that’ll fix the problem? If so, does it matter where in the template I place it?

    The other option you mentioned sounds good too, because it is only the clickable URL’s that are knocking my theme out of whack. How would I go about it, or would the first option be better/easier?

    Thanks again…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Comments with long URL’s crashing my theme?’ is closed to new replies.