Digg offers a very nice compact version of their digg button. I use it on my own site.
The code to do it is basically this:
<div class="diggbox">
<script type="text/javascript">
digg_url = '<?php the_permalink(); ?>';
digg_title = '<?php the_title(); ?>';
digg_skin = 'compact';
digg_bgcolor = '#ffffff';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
</div>
You stick it in your Loop and voila, a compact little digg box.
More options can be found here: http://digg.com/tools/integrate
Thanks, I see the digg text is at the top of your blog post. Is there an option to put it on the bottom?
It’s at the top of my post because I wanted it there. Where it shows up is a function of where you put that code in your loop. I put it at the top of my Loop and then used CSS to float the diggbox div right, so it would show up there.
If you want it at the bottom, put that code at the bottom of your Loop.
Cool, I got everything setup. Thanks Otto!
Otto, I put that code in and it allows me to digg the story, but I notice the total digg count thing is still at zero even after I dugg it. Is there some other code I need?