Disqus is one of the most used commenting systems in websites. It’s easy, fast and customizable. Disqus also support real time comments. Like any other commenting systems, Disqus provides various widgets for showcasing comments, discussions and commenters. They also have a widget that combines all these together. It is very easy to install this “combination” widget.
You can include this code in Blogger’s HTML Widget or in WordPress’ Text Widget :
<div id="CombComments" class="dsq-widget">
<script type="text/javascript" src="http://example.disqus.com/combination_widget.js?num_items=5&hide_mods=0&color=grey&default_tab=popular&excerpt_length=100&hide_avatars=0"></script>
</div>
Replace “example” short name in the above code to your Disqus forum short name.
You can configure the widget by setting values on GET parameters :
Name |
num_items |
hide_mods |
color |
default_tab |
excerpt_length |
hide_avatars |
You can add custom styles using CSS. The parent element’s id is “CombComments” and the class is “dsq-widget”.An Example of adding custom style :
.dsq-widget a{
color: black;
}
The above code will make the color of all “a” elements “black”.