Truncate Comments

April 14, 2024

Truncate Comments Plugin

The plugin uses Javascript to hide long comments (Amazon-style comments).

Truncate Comments is a plugin that hides a part of a long comment under a “Read more” link that, when clicked, reveals the hidden part of the comment. The plugin provides the functionality of Amazon.com comments.

If you liked my plugin, please rate it.

The plugin uses jQuery Collapser by Aakash Chakravarthy.

Screenshots

  1. The plugin settings page.

    The plugin settings page.

  2. Example of a hidden comment.

    Example of a hidden comment.

FAQ

Installation Instructions

  1. Visit «Plugins\Add New».
  2. Search for «Truncate Comments».
  3. Install and activate the plugin.
  4. That’s all.

Plugin settings are available in «Settings\Truncate Comments».

How to style a “Read more” link using CSS?

Add the following code to the style.css file of your theme.

.commentMoreLink { color:red!important; } 

The link will become red (just an example).

Does the plugin support localization?

Yes, please use translate.wordpress.org.

Changelog

2.00

  • minor bug fixes
  • added “Hide” button.

1.04

  • minor bug fixes

1.03

  • removed PHP notices.

1.02

  • removed the bundled languages in favour of language packs from translate.wordpress.org.

1.01

  • added German translation (thanks to ezkay).

1.00

  • first public version.

Details

  • Version: 2.00
  • Active installations: 100
  • WordPress Version: 3.0
  • Tested up to: 6.5.5
  • PHP Version: 5.3

Ratings


5 Stars
4 Stars
3 Stars
2 Stars
1 Stars