How To Make Disqus Recent Comment Widget For Blogger

How To Make Disqus Recent Comment Widget For Blogger - Disqus is a networked community platform used by hundreds of thousands of sites all over the web. By using Disqus, your website gains a feature-rich comment system complete with social network integration, advanced administration and moderation options, and other extensive community functions. On this occasion Blog Okay want to share the code for my friends who use Disqus comments on their blog. Disqus Looks good, Works everywhere and Used across the world.

For you who wanted to know what these widget, please follow the following tutorial.

Step 1: Log on blogger Layout menu, then Add Widget, then select HTML / Javascript.

After that save the code below on the box, then press Save!

<div class='dsq-widget' id='RecentComments'>
<script defer='defer' type='text/javascript'>
//<![CDATA[
document.write("<scr" + "ipt type=\"text/javascript\" src=\"https://blogokay.disqus.com/recent_comments_widget.js?num_items=200&hide_mods=1&hide_avatars=0&avatar_size=32&excerpt_length=120\"></scr" + "ipt>");
//]]>

</script>
<script type='text/javascript'>
//<![CDATA[
$("#RecentComments a").filter(function(){return this.hostname&&this.hostname!==location.hostname}).attr('rel', 'nofollow').attr('target', '_blank');
$("#RecentComments p.dsq-widget-meta a").filter(function(){return this.hostname&&this.hostname!==location.hostname}).attr('rel', 'nofollow').attr('target', '_blank');
//]]>

</script>
<div style='clear:both;'></div>
</div>

Replace the words blogokay in recent code above Disqus comment with your Disqus ID.

Step 2 : Save the CSS code below just before the closing </head> Edit HTML page.

<style>
#RecentComments ul.dsq-widget-list{text-align:left;max-height:90%;overflow:auto;}
#RecentComments img.dsq-widget-avatar{margin:3px 10px 7px 0;width:32px;height:32px;border-radius:50%;padding:0;float:left;clear:both;display:block;position:relative;top:-9px;}
#RecentComments p.dsq-widget-meta{clear:both;font-size:80%;margin-top:5px;font-weight:400;}
#RecentComments p.dsq-widget-meta a{display:inline-block;width:48%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#6d6d6d;font-size:13px; text-shadow:none!important; }
#RecentComments p.dsq-widget-meta a:hover{color:#5d5d5d}
#RecentComments li.dsq-widget-item{margin:0;padding:6px 0 4px;list-style-type:none;clear:both;border-bottom:1px solid #eee;color:#2e87e7;font-weight:600;
padding:20px;}
#RecentComments li.dsq-widget-item:hover {
background:#f6f6f6;
}
#RecentComments li.dsq-widget-item:last-child{border-bottom:none}
#RecentComments a.dsq-widget-user {display:table;color:#3d3d3d;font-weight:700;font-size:18px; position:relative;}
#RecentComments a.dsq-widget-user:hover{color:#5d5d5d;}
#RecentComments span.dsq-widget-comment{display:block;clear:both;margin-top:5px;}
#RecentComments .dsq-widget-comment p{display:inline-block;font-size:13px;margin:0;font-weight:400;color:#444}
#RecentComments .dsq-widget-item pre{position:relative;background-color:#f3ffca;padding-top:0;box-shadow:0 1px 0 rgba(0,0,0,.1);border-radius:0;opacity:.9;transition:all .3s;}
.count-1{background:#ED1E24;padding:2px 5px;font-size:11px;border-radius:3px;position:absolute;top:-8px;left:-15px}
#RecentComments .dsq-widget-item pre:hover {opacity:1}
#RecentComments .dsq-widget-item pre code {color:#444;font-size:82%;}
#RecentComments .dsq-widget-item pre:before{content:'';position:absolute;padding:initial;font-size:initial;text-indent:initial;left:initial;color:initial;top:0;right:0;width:1.2em;height:1.2em;background-color:#d8e3b0}
#RecentComments .dsq-widget-item pre:after{content:'';font-size:initial;padding:0;position:absolute;width:0;height:0;border-style:solid;border-width:0 1.2em 1.2em 0;border-color:transparent #fff transparent transparent}
#RecentComments h3.judul {font-weight:normal;display:block;box-shadow:0 4px 5px rgba(0,0,0,.10);z-index:1;position:fixed!important;position:relative;top:70px;left:-1000px;width:500px;max-width:100%;background:white;transition:all .2s ease;
}
</style>

Click save and Disqus Recent Comment Widget have added on your blog. If you have any questions about the tutorial above please submit comment below.
Advertisement

Tidak ada komentar