In the last post, I told the way to implement Disqus Combination widget to your web site which have recent comments, popular threads and commented users, all in one. But, if you only need one of it, why load all 3 of them. So, if you only want the Recent Comments widget, you will find this post useful.
You can also see a demo on JsFiddle.
Insert the following code in the place where you want to display the widget :
You should replace the “example.disqus.com” with your Disqus forum URL ( “shortname.disqus.com” ).
As I said in my previous post, this widget also supports configuration like the “Combination Widget”.
|num_items||5||The number of items that should be shown (includes all items).|
|hide_mods||0||Set To “1” to hide Moderators’ comments|
|excerpt_length||100||The excerpt (short version of comment) length|
|hide_avatars||0||Set to “1” if you don’t want to display avatars|
|avatar_size||32||The Size of the avatar of user.|
You can add this code in Blogger, WordPress and any other Blogging services.
Then, paste the code and click “Save” button.