Digg Button for WordPress
I was searching the web for digg wordpress plugin which will help me to submit my articles directly from my blog. I found two most used plugin, but none of them worked for my latest version of WordPress.
Hence, I researched a bit and made my own. Well, This is not a plugin, its just a simple piece of code which has to be implement in your template files.
Initial Release:
- Default and Compact Digg Button
- Optional float in both side.
- Compact and Default Button
Installation:
- Download the text files below and copy the code.
- Open your single.php (found in your current themes folder)
Dashboard > Presentation > Theme Editor > Single Post/single.php - Find the piece of code : <div class=”post-content”>
- Add the Digg Code after that and save the file.






















I pasted the code into single.php and the button works great for each post’s individual url. Which page should I copy the text into for the button to show up next to each post on the main page?
For showing the digg button in main page, you should edit the “Main Index Template” (index.php) for your theme.
Perfect code. It worked perfectly in one of my blogs. Thanks a lot buddy.
Hi, Thanks for that handy code. Quite helpful for my blog photoclix.in.