WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Stop line breaks in comments being converted to paragraphs (2 posts)

  1. richardhenry
    Member
    Posted 7 years ago #

    I don't wish for line breaks in comments to be converted to paragraphs. Is there any way to get around this?

    For example, a visitor types:

    Hello there,

    I was just visiting your blog!

    Bye now.

    I would like to display:

    Hello there, I was just visiting your blog! Bye now.

    Thanks in advance for any help anyone is able to provide!

    Richard

  2. whooami
    Member
    Posted 7 years ago #

    I believe you can do that by editing default-filters.php and comment out this line:

    add_filter('comment_text', 'wpautop', 30);

    no guarantees on what else it will do though

Topic Closed

This topic has been closed to new replies.

About this Topic