How I got that pretty Digg It Button
See the Digg It! button I’ve added at the right top of each post? And how it neatly takes you to a page where the URL’s already filled out and you have just a couple of steps to complete? Here’s how I did it.
First, I tried the script from Brandon Hopkins, and that just didn’t [...]
See the Digg It! button I’ve added at the right top of each post? And how it neatly takes you to a page where the URL’s already filled out and you have just a couple of steps to complete? Here’s how I did it.
First, I tried the script from Brandon Hopkins, and that just didn’t do anything. Not sure if it’s a WP version issue, or what, but I tested on two sites and had no joy. Then I found slightly different javascript from Bill2Me. Then I combined Brandon’s styling with the code from Bill2Me, and got this:
<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>
Look at Brandon’s post to see where to put the code. Every template can vary a little, but that should get you started. Post a comment if you have questions!
