Now lets come to the point.After you perform this hack once in your template a cool digg button will be displayed in each post of your blog posts.To setup this widget in your blog First of all goto your blog Edit Html Page , Expand Widget Templates and Follow the simple steps that follows below.
First of all search for the following line of Code in your Template.
<p><data:post.body/></p>
Now if you like to show digg button at Top Left of your blog Post then Replace the above code with the following lines of Code.
<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>
<p><data:post.body/></p>
Or if you like to display digg button at Top Right then Replace the above code with the following lines of Code.
<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>
<p><data:post.body/></p>
comments
0 Responses to "Add digg button to each of your blog posts"Speak Your Mind
Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!