WordPress.org

Support

Support » Themes and Templates » Automatic line breaks in comments..?

Automatic line breaks in comments..?

  • I’m just wondering what I have to do to make line breaks automatic in the commentfield. Some users demand that I enable it so that when they press enter twice to make a line break, it will appear as a line break when the comment is posted. This is not the case on the blog I’m working with here.

Viewing 6 replies - 1 through 6 (of 6 total)
  • There is something wrong with your theme and/or setup.

    Normally, the comment field works exactly as the post textarea:
    1xEnter = line break
    2xEnter = paragraph

    The paragraph thing (Enterx2) doesn’t work on your site – I just left a test comment.

    Really weird.. I’ve only translated the comments.php file, haven’t touched much more there.. Line breaks are working just fine in posts. Well, her readers will just have to live with it I guess.

    here’s your problem:

    #commentlist li p{
    padding: 0px;
    margin: 0px;
    }

    All P tags within the li’s of the comments area have been stripped of all margins an padding. So no line break appears. it’s there, it’s just set to “0”.

    Try changing it to:

    #commentlist li p{
    padding: 0px;
    margin: 1em 0;
    }

    Well, it worked – although I didn’t do a thing to actually edit it 😀
    Either someone got there before me, or we’re talking Divine Intervention.

    😀

    Robert

    @hartlrobert

    I solved it via css, too.
    But on the author profile page line-breaks are still not shown on the official author page.

    Is this similar or are there other functions?
    Thanks a lot.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Automatic line breaks in comments..?’ is closed to new replies.