WordPress.org

Ready to get started?Download WordPress

Forums

Automatic line breaks in comments..? (7 posts)

  1. brom
    Member
    Posted 8 years ago #

    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.

  2. moshu
    Member
    Posted 8 years ago #

    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.

  3. brom
    Member
    Posted 8 years ago #

    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.

  4. Doodlebee
    Member
    Posted 8 years ago #

    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".

  5. maerk
    Member
    Posted 8 years ago #

    Try changing it to:

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

  6. brom
    Member
    Posted 8 years ago #

    Well, it worked - although I didn't do a thing to actually edit it :D
    Either someone got there before me, or we're talking Divine Intervention.

    :-D

  7. Robert
    Member
    Posted 7 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.