• Resolved reemixxed

    (@reemixxed)


    I’m currently using the Mandigo theme and have noticed a problem with posting long text links in a comment (might also happen in a post but I haven’t tried this)

    Whenever a link is too long, instead of wrapping over to the next line, it continues on and pushes my sidebars (which are positioned on the right side) over until they’re off the page.

    With other themes, the link just continues out of the comment box as well, so I know it’s not my theme that’s the problem.

    So is there any way to automatically wrap text links without breaking them so that they continue onto a new line when they’re too long?

Viewing 8 replies - 1 through 8 (of 8 total)
  • With other themes, the link just continues out of the comment box as well, so I know it’s not my theme that’s the problem.

    Wrong conclusion! Quite the opposite: if it works in other themes… your theme is the “guilty” one.

    Add the overflow line to your stylesheet:

    .commentlist p {
    font-weight: normal;
    line-height: 1.5em;
    text-transform: none;
    overflow:hidden;
    }

    Thread Starter reemixxed

    (@reemixxed)

    moshu: Not exactly. It’s not sidebars moving that was the problem, it’s a long string of characters not breaking up that’s a problem in any theme. Hence, it wasn’t the theme. I didn’t want the links being so long that they go off the page, either. Otherwise, yes, I could have just used overflow, but that’s just masking the problem. However, thanks for the suggestion.

    Anyways, after much searching, I found the answer. It was happening to all text strings that were just continuous without spaces, which includes links. So i downloaded the plugin from here and just edited the character length to suit, as well as remove the text wrapping from posts (only really needed it for comments). Works a charm

    whooami: Thanks for the link also, your plugin probably would have worked as well if it applies to text strings as well as links. Haven’t looked at it extensively so I’m not entirely sure. But thank you anyway.

    nonbreakingtextlikethiswhywouldthatbeincommentsanyway?icantseeapurpose.unlesssomeoneistryingtobreakyourdisplay

    and no, that isnt what wp-chunk does. thats what punctuation and spaces are for.

    Thread Starter reemixxed

    (@reemixxed)

    whooami: Well I know that, and you know that, but there are a lot of stupid people out there and I don’t want to have to go through and moderate each and every comment. A user shouldn’t be able to break the display, as far as I’m concerned. If it’s possible for them to, it’s a problem with the design and needs to be rectified.

    I was being polite and saying thank you for your help. No need for sarcasm.

    dont get your hackles up too quickly.

    That wasnt sarcasm, that was me wondering why text thats non-breaking would be in comments in the first place, especially enough that it would break a decently wide-enough <div>

    but you answered the question: stupid people

    loopyknits

    (@loopyknits)

    Hi, I’m having a similar problem with unexplained text refusing to wrap. It’s happened in multiple themes I’ve used, but it seems to be intermittent, only affecting the occasional paragraph. See an example of text that isn’t wrapping properly in the last paragraph this post (text beginning with “Photos reprinted with permission”). The URL is:
    https://www.loopyknits.com/2007/11/26/if-bugs-could-knit-theyd-be-so-jealous/

    I thought it might be that I write my text in Word and then paste into the WordPress window, so I tried saving the text in plain text editor (no word wrap) and then pasting it from there; same results.

    The weird thing is that it’s usually just one paragraph that malfunctions like this, and I can’t see or delete any code that would be making this happen. I’ve also tried editing directly in the WordPress window; you can see the text not wrapping at the time I’m editing it, not just upon publication. It’s happened when I’ve edited in Opera and in Firefox. Seems to happen most when I’m pasting text from another program, though.

    Could it just be that I need to upgrade? This blog is WordPress 2.2 and I’m overdue to upgrade anyway.

    Thanks for any feedback you can offer.

    – Carolyn Bahm

    loopyknits

    (@loopyknits)

    OOPS – I’m sorry, I didn’t read carefully and see that I was adding to a resolved topic, and that the original post was about wrapping issues in comments. My issue is in the body of my posts. Sorry about that. If anyone responds here, that’s great; if not, I’ll post it as a fresh topic. My error!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Wrapping text links in comments’ is closed to new replies.