• Resolved blogforum

    (@blogforum)


    In the widget column there is the preview comment, but I want to put comment-link “…Read more” after the last preview word.

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

    You would need to customise the plugin to achieve this. Relevant code is in Better_Recent_Comments_Util::get_recent_comments() function.

    Andy

    Thread Starter blogforum

    (@blogforum)

    Sorry, but I did not understand. I open the file Better_Recent_Comments_Util.php and then what I do?

    Sorry, you’ll need a developer on this. It’s a free plugin, so not something I can help with.

    Thread Starter blogforum

    (@blogforum)

    This the code, i’ve add (see bold), this run good but show “Read more” in all preview post. I need only for truncated posts.


    $comment_content = str_replace(
    array( ‘{avatar}’, ‘{author}’, ‘{comment}’, ‘{date}’, ‘{post}’ ),
    array(
    ‘<span class=”comment-avatar”>’ . $avatar . ‘</span>’,
    ‘<span class=”comment-author-link”>’ . $author . ‘</span>’,
    ‘<span class=”comment-excerpt”>’ . $comment_text . $link_fmt = ‘comment_ID ) ) . ‘”Read more</span>’,
    ‘<span class=”comment-date”>’ . $date . ‘</span>’,
    ‘<span class=”comment-post”>’ . $post . ‘</span>’
    ),

    • This reply was modified 7 years, 1 month ago by blogforum.
    • This reply was modified 7 years, 1 month ago by blogforum.
    • This reply was modified 7 years, 1 month ago by blogforum.
    • This reply was modified 7 years, 1 month ago by blogforum.
    • This reply was modified 7 years, 1 month ago by blogforum.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Make “…Read more”’ is closed to new replies.