How to Add Digg Button For Blogger

Digg is a social news website. Prior to Digg, its cornerstone function consisted of letting people vote stories up or down, called digging and burying, respectively.This is a step-by-step guide to automatically place a real-time Digg count and vote button to every single blogger post.

To add this widget to your blog, follow these instructions:

Step 1:
Log in to Blogger, go to Layout -> Edit HTML and mark the "Expand Widget Templates" checkbox.
Step 2:
Now find (CTRL+F) this in the code:


<data:post.body/>

Case 1:
Screenshot:
Right Corner
To place the digg button at the top right corner of your post paste this code before/above it :


<div style='float:right; margin-left:10px;'>
<script type='text/javascript'>
digg_url="<data:post.url/>";
</script>
<script src='http://digg.com/tools/diggthis.js' type='text/javascript'/>
</div>
Case 2:
Screenshot:
Left Corner
To place the digg button at the top left corner of your post paste this code before/above it :


<div style='float:left; margin-right:10px;'>
<script type='text/javascript'>
digg_url="<data:post.url/>";
</script>
<script src='http://digg.com/tools/diggthis.js' type='text/javascript'/>
</div>
Case 3:
Screenshot:
End
To place the digg button at the end of your post paste this code below/after it :


<div style='float:right; margin-left:10px;'>
<script type='text/javascript'>
digg_url="<data:post.url/>";
</script>
<script src='http://digg.com/tools/diggthis.js' type='text/javascript'/>
</div>
Case 4:
Digg has another compact button.
Screenshot:
Compact
To get this paste this code before/above it :


<div style='float:right; margin-left:10px;'>
<script type='text/javascript'>
digg_url="<data:post.url/>";
digg_skin="compact";
</script>
<script src='http://digg.com/tools/diggthis.js' type='text/javascript'/>
</div>
NOTE:
This will put a Digg button to every post. You are therefore not able to choose which post you want to include or exclude a button.

Check For More Social Share Buttons "How to add Linkedin Share, Yahoo Buzz, Reddit, Facebook Like, Delicious, Google Buzz, Stumbleupon, Tweet, Retweet and Facebook Share buttons in blogger."

Comments