Search This Blog

Wednesday, June 3, 2009

Embed Small Digg Button in Blogger posts

This tutorial explains how to embed a Digg Button into your blogger template's posts, which will be displayed every time you post. The button displays the amount of times each post has been dugg and lets users digg directly from your blog.

Here are the Steps:
Make sure to Backup your Template! [very Important]

Open your blogger template, click Expand Widget Templates, and search for the code below:

Add this code below directly above the searched code above 

<!-- DIGG --><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>

Now save the template
If you like you may even add the Digg button by the sidebar
We can do this by adding the later code in the html/javascript section.

No comments:

Post a Comment