WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to collapse long comments (6 posts)

  1. Satiro
    Member
    Posted 2 years ago #

    Hi,
    sometimes users posting too long comment on articles. There is a way to collapse automatically long comments and expand them on a click?
    To clarify, like a sliding "read more", preferably via plugin.

  2. egado
    Member
    Posted 2 years ago #

    Never worked with it, but you can try

    <?php comment_excerpt(); ?>

    http://codex.wordpress.org/Function_Reference/comment_excerpt
    20 Words lenght... but you can find a lot of solutions for custom lenghts :)

    Custom lenght for comment excerpt: http://illuminatikarate.com/blog/wordpress-how-to-change-comment-excerpt-length/

    :)

  3. Satiro
    Member
    Posted 2 years ago #

    Thx!
    There is a script to expand the excerpt and turn it into content?

    I tried searching on google a lot, but with no results :(

  4. egado
    Member
    Posted 2 years ago #

    Guess you will need a JavaScript/jQuery solution to solve this... I will try an example...

  5. egado
    Member
    Posted 2 years ago #

    Ok... there are a lot of jQuery Plugins...

    some plugins:

    you show the full comment and the jquery plugin will cut the text...

  6. Satiro
    Member
    Posted 2 years ago #

    Thank you! Your help is really precious!

Topic Closed

This topic has been closed to new replies.

About this Topic