Okay, so now lets begin with adding a Digg button on your blogger template. The output will be just like the Digg button i have on my blog, next to the title of the blog.
First, open blogger and go to HTML editing. Tick-mark the button that says Expand Widget templates.
Please backup your template before making any changes in the template. Click on Download Full Template on the EDIT HTML page.Search for the following code in your template:
...<data:post.body/>...
<!-- 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>
<script type='text/javascript'>
digg_url = '<data:post.url/>';
</script>
<script src='http://digg.com/tools/diggthis.js' type='text/javascript'/>
</div>
That's it, you are done.
If you like this article then you may also like receiving free daily updates directly in your email (one email per day).
0 comments:
Post a Comment