Placement of Digg Button on ModernPaper Theme
I setup a blog earlier today to protest Michael Vick’s continued presence in the NFL at SackVick.net. I used the ModernPaper Theme from Performancing.
Along the way I wanted to add a digg button, but hadn’t done this with this theme before. It turned out to be a little trickier than I suspected so I thought I’d share my experience and code example in case it would save someone else 20 minutes of trial and error.
Here is the final outcome of the button. Its not bad, but I prefer to have it hover to the right inside the actual content.
Here is the code that I used to achieve this result (its a snap shot, but a short amount of code also)
I basically put the Digg script in the index.php file floating left just below the title.
The Script
<div style=”float:left”>
<script src=”http://digg.com/tools/diggthis.js” type=”text/javascript”></script>
</div>
