Monday, November 5, 2007

Digg It button for blogger

Are you a digger ? If so then you might want to embed a simple and nice looking digg it button next to your post.

First of all you have to login to your blogger blog admin panel, then select template / edit html, mark Expand Widget Templates and copy paste the whole html code in a plain text editor like notepad. You might consider to make a template backup if something goes terrible wrong :).

Now find the following line of code

<p><data:post.body/></p>
and place this on the next line :
<p>

<!-- 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>
<data:post.body/>
</p>


Thats all folks, copy and paste the html back to your html view and save


2 comments:

SportsPlaypen1 said...

I tried the digg it button but it doubled my posts. My posts were on there twice.

Asdix said...

yup.. it doubled mine too.


http://asdix.blogspot.com

Post a Comment


Pimped for blogger by BT | Designed by - Jai
Add to Google Add to Netvibes Subscribe with Bloglines