Tips to Add Digg button to every post in Blogger
05 January, 2009
You will be wondering to see a “Digg” button with every post of my blog. Normally people use social bookmarking button, where you have choice of many other bookmarking websites along with Digg. Being the most popular social bookmarking service, Digg is something special than all other social bookmarking sites and once any of your website reader digg your blog post, you can receive good amount of referral traffic from Digg.
Here in this post, I will explain the tips to add Digg this button with every post of your blog on Blogger platform. Digg provides a dig this JavaScript. All you need to do is to paste a small code on your Blogger template. Below are the instructions-
- Go to your Dashboard, click on Layout button and then choose the Edit HTML tab. See the below image for your reference.
- Backup your template by clicking "Download Full Template" button.
- Click on Expand Widget Templates checkbox and search for the code
- Replace this code with the piece of code given below.
<p>
<!-- Digg this button start -->
<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>
<data:post.body/>
</p>
<!-- Digg this button ends -->
- Save your Template, and it's done.
The above instructions will add a standard size Digg submit button with zero diggs in the right side of every post in your blog. By adding a Digg button with every post, you can increase the chance of your post to be dugg. The digg count will start from the time when someone first digg your post.

0 comments:
Post a Comment