• Resolved blogforum

    (@blogforum)


    When the comment is long, 3 dots appear. I want to put the [Read more] link back to the original comment.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    The three dots (&hellp;) is added by WordPress function get_comment_excerpt. You would need to use the ‘get_comment_excerpt filter’ to change the output to add the read more:

    https://hookr.io/filters/get_comment_excerpt/

    Thread Starter blogforum

    (@blogforum)

    I looked at the link but did not understand what to do.

    My situation in includes/class-better-recent-comments-util.php is:

    ‘excerpts’ => true

    if ( $excerpts ) {
    $comment_text = get_comment_excerpt( $comment->comment_ID );
    } else {
    $comment_text = strip_tags( str_replace( array( “\n”, “\r” ), ‘ ‘, $comment->comment_content ) );
    }

    You’d need a developer to look at that, as you need to add some code to your theme or a custom plugin to do this. Sorry I can’ be more help

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Make [Read more]’ is closed to new replies.