A few people have asked how I get my Digg This! button to float to the right in every wordpress post.

Here is the code I use:

<div style=”float: right; margin-left: 15px; margin-bottom: 2px;”>
<script type=”text/javascript”>
digg_url = ‘<?php the_permalink() ?>’;
</script>
<script src=”http://digg.com/tools/diggthis.js” type=”text/javascript”>
</script></div>

For my current theme (Not So) Fresh I had to add it into two places, the main index and the single post pages. Here is what it looks like in each of those places:

Screenshot of index.php:

Index Page with Digg This Button

Screenshot of single.php:

Single.php wordpress digg button

Hopefully that helps, if you have any questions, email me or post them in the comments section.