Are you looking for recent
comments widget for your blogger blog? In this post, I will provide you step by
step guide to add the recent
comments widget in your blog. This widget is very same to the recent post widget in function which is displaying the recent
posts in your blog sidebar and this widget will display recently published
comments from your blog readers. This widget will inspire your readers to make
comments on your blog posts. This will facilitate your visitors to find the
latest comments that just the arrival to your blog. If your blog has an empty
place, then it will fill it.
This
is not very difficult to install the recent comments widgets in blogger. We will
install this widget thought already made coding. So you don’t need to write CSS,
javascript or HTML coding. Simply follow the instructions.
- Login to your blogger account
- Go layout, click on add a gadget
- Select Html/javascript from appearing window
- Paste the below codes into it
<link href=’https://googledrive.com/host/0BzPgmXeCwsMRUFloS3B1NVRybWM/’ rel=’stylesheet’/>
<script type=”text/javascript”>
//<![CDATA[
var
numComments = 5,
showAvatar = true,
avatarSize = 35,
roundAvatar = true,
characters = 40,
defaultAvatar = “https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjc-81SUPFn4t2MahUzXlijKai9EsDAgENhbLvP2TDen361x6hrodLBSRG2SRUw2OaQk6V7cPSmXB1RMrsq0kkG4pbrODfFN_WCtlVH4EIXxSuMgMF5Vkn1-mZL9jRhaYq0G-mTZ6IO3As/s1600/none.png”,
hideCredits = true;
maxfeeds=50,
adminBlog=’your name’;
//]]>
</script>
<script type=”text/javascript” src=”https://kang-is.googlecode.com/svn/trunk/javascript/recentcomments2.js”></script>
<script type=”text/javascript” src=”/feeds/comments/default?alt=json&callback=kangismet_recent&&max-results=50″>
</script>
Save
the gadget with your desired name such as”Recent Comments ”
Recent Comment Widget customization
You
can customize this widget by little modification in its coding
- numComments = 5 (the number of comments displayed)
- showAvatar = true (false, if you want to hide avatar)
- avatarSize = 35 (the size of the avatar in pixels)
- roundAvatar = true (avatar round)
- characters = 40 (the number of characters the content of the comment)
- defaultAvatar = “https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjc-81SUPFn4t2MahUzXlijKai9EsDAgENhbLvP2TDen361x6hrodLBSRG2SRUw2OaQk6V7cPSmXB1RMrsq0kkG4pbrODfFN_WCtlVH4EIXxSuMgMF5Vkn1-mZL9jRhaYq0G-mTZ6IO3As/s1600/none.png” (default avatar)
- adminBlog=’your name‘ (the name of the blog author, replace with your name)
So,
friends! Now you have learned that how to create
recent widget comment in a blogger blog? So this is easy or not? I’m sure if you read
and follow the tutorial then you will successfully be added this widget to your
blog.
Theo thebloggerguide
0 nhận xét: