Add Digg To Blogger.com Posts

By Brian, December 5, 2007 2:51 pm

After a poking around the xml template for my site, and playing around with the Digg code, I’ve figured out how to add a Digg button to my posts.
Listed below is a quick how-to for adding this functionality to your website too.

  1. Make sure your blog is set to enable Post Pages and you are using the new Blogger, not the classic version
  2. Go to the customization section of your blog, on the Template tab select Edit HTML
  3. Make sure to click Download Full Template and save a backup copy to disk – just in case.
  4. Put a check in Expand Widget Templates.
  5. Search for <p><data:post.body/></p>
    Update: November 5th, 2008

    It has come to my attention that some templates use a slightly different formatting. If you cannot find the text listed above – try searching for <data:post.body/> and follow the rest of the instructions.

  6. Paste this on the line directly before it:
    <div style='float:right; margin-left:10px;'>
    <script type='text/javascript'>
    digg_url=&quot;<data:post.url/>&quot;;</script>
    <script src='http://digg.com/tools/diggthis.js' type='text/javascript'/>
    </div>
  7. Preview your template to make sure it looks right – the Digg icon should appear at the top right of all your posts. Hover your cursor over it and make sure the link URL matches your post URL.
  8. If all looks well, click Save Template and then View your blog

Happy DIGGing!

92 Responses to “Add Digg To Blogger.com Posts”

  1. http://template-godown.blogspot.com says:

    hi brian, good work.

    i’ll put this post on my blog,


    http://template-godown.blogspot.com

    thank you

  2. Michelle says:

    Thanks, Brian! Already put your genius to good use!
    http://missmotamouth.blogspot.com/

  3. Brian Cantin says:

    Glad to be of service, and hey, feel free to DIGG this post or link to me if you liked it. ;)

  4. tukang.gudang@gmail.com says:

    hi brian, thanks for your comment-back. actually i put a link already, on your name [brian cantin] and words [his step].
    but it’s now updated by adding a footer linking to your page.
    sorry for the inconvenience.

    regards,

  5. william says:

    Thanks alot for the info. I managed to add Digg to my blog. It’s at slackogamer.blogspot.com

  6. Martin says:

    Worked perfect. Thanks!!!

  7. dailyphotographer says:

    Hey this is great, worked perfectly. I posted the code in my blog
    http://photographyperdiem.blogspot.com

    Thanks very much! your good!

  8. Google helper says:

    great it’s working fine awesome buddy

  9. 3 n' 30 says:

    Out of all the sites I went looked at to get the Digg button on my site, yours is the only that has worked for me.

  10. bedmo says:

    Thank you verry much my freind. I add it to my blog its verry cool. see it
    http://computers-maintenance.blogspot.com

    Have a nice day.

  11. Donavon West says:

    You’re a good man, thanks. Added to HomeServerHacks.com.

  12. American Goy says:

    And I was dumb enough to add it to each post…

    Stupid stupid stupid…

    Thanks!

  13. Brian Cantin says:

    “And I was dumb enough to add it to each post…”

    I was going to do this and figured there had to be a better way… Going through all my posts and manually linking them seemed rather daunting.
    Not to mention I am rather forgetful and lazy – so remembering to add it to each post seemed troublesome.

  14. American Goy says:

    I put in both digg it and reddit button short and sweet tutorial

    and

    I gave my html code on how to do it if anyone is interested

    http://americangoy.blogspot.com/2008/01/housekeeping-digg-it-and-reddit.html

  15. Paul says:

    Thanks for the useful advice, always appreciated.

    QuickExtenderPro

  16. SSTRM says:

    Thank you very much for this advice, Your method is so simple yet effective. Double thank you!

  17. Anonymous says:

    Thanks for this! I’ll be implementing this on my blog:

    http://gametheoryonline.blogspot.com/

  18. Chris says:

    Right on. Worked Great! BTW Google presented you up top.

    http://blog.anzelonline.com/

  19. J W says:

    Great! This is really a brilliant hack! Thanks. I have added this in my blog at Man Fashion

    Cheers

  20. X4 Penis Extender says:

    Great and useful advice, this was rea good for me.

  21. Anonymous says:

    actually the idea is not genuine anymore, i believe it’s taken from http://tips-for-new-bloggers.blogspot.com/2007/03/add-digg-button-to-blogger-or-blogspot.html

  22. Brian Cantin says:

    I’m not sure what you mean ‘not genuine anymore’ – this still works just fine, as seen on all my pages.
    I see that the listed link does not directly work, however, regardless of when that was posted – it was not readily available at the time I wrote mine, otherwise there would have been no point in the first place.

  23. Costa says:

    Many thanks! I wanted to put my digg at the bottom of each post, so I pasted the code a few lines down, after the last line in the post-footer code (it’s the data post timestamp on mine) and before the /b:if line. Thanks again.

  24. dave says:

    Thanks!
    Added sucessfully to http://www.whatanexperience.org.

  25. chitgoks says:

    I placed your post in my blog. I’, not sure if this happened to any one of you. when i submit a post to digg using that icon, it always gives out an error. Anyone experienced this?

  26. Waxed says:

    WooHoo! Working like a dream :)

    Lester
    lesterhein.blogspot.com

  27. Jeffrey Diana says:

    thanks for the help. i really wanted to put a “digg” link on my posts.. nice post! very helpful!

    http://jeypriey.blogspot.com

  28. ifrim says:

    nice work. tkank you my blog is http://ifrim3.blogspot.com

  29. Just a Money Maker says:

    Thank you. Digg is working perfect on my blog!

    http://justamoneymaker.blogspot.com/

  30. B and T Crowd says:

    Your post is the post that keeps on giving! Thanks! I don’t understand why it was so hard to find such simple directions. I can only imagine what your visitor count is up to.

  31. MaT says:

    very useful script, thanks for that
    i used it in my blog

  32. J. Thomas Hunter says:

    THIS WAS GREAT!Thank you so much for providing this information. With a little bit of patience, I found the prompt.

  33. Vinod Tonangi says:

    For some reason this WAS working, but today it completely stopped working. I even tried to change to a default template again, and redo it. I see when it loads up it is contacting digg.com but I can’t see anything – anybody know why? please let me know

  34. Vinod Tonangi says:

    fyi – if you look at http://www.bigredmat.com you will see that the new reddit works just fine, so I don’t understand why the digg one won’t work…

  35. Jacque Rowland says:

    Awesome Thanks Brian!!!

  36. Anonymous says:

    many thanks
    i added to my blog http://ccna-test.blogspot.com

  37. tambelan says:

    perfect tips. i added in my blog now :) thanks a lots.

  38. Nicholas says:

    all this does for me is removes all my posts and leaves a bunch of digg buttons :/

    nickandlena.com

  39. Anand Rao says:

    Super Cool Dude! Thanks

    http://anand-mind-spark.blogspot.com

    I will Digg this post!

  40. Hari says:

    Thanks a ton. was waiting for this

    http://www.hithari.com

  41. EverybodyGeek says:

    Thx alot! This was exactly what I needed. And you can even customize the digg button!

  42. Admin says:

    thanxs a ton Brian. It worked for my blog. Appreciate your hard work.

  43. Incomebooster.org says:

    Thx, just added to
    http://wfhmedia.blogspot.com/

  44. koushik says:

    Nice hack …just added to

    http://future-gadget.blogspot.com/

  45. Brian Cantin says:

    Just a note to those who where having unexpected results – make sure you are in fact running on the new blogger and are not using blogger hosted on an external site. Be very careful to insert the code exactly where stated, otherwise things may explode. I missed a line of code trying it out and my toaster caught fire – you really need to watch closely.

  46. Kazi says:

    I can’t find the html tag u mentioned
    in the edit html template.

  47. TechPrism : RIDDHI MOHAN says:

    Nice,,,Work,,
    I had implemented thi on my blog,,

    http://techcolors.blogspot.com

  48. Pinoybooters says:

    can you help me?? I already added it but its not appearing, is it my template? I have a chat box there please help me http://yahoo-nukers.blogspot.com/

  49. Anonymous says:

    Thanks man. I added it in my blog (http://www.coderambles.com). Is there any way to pass title and description to digg?

  50. dc says:

    Thanks Brian.
    http://jibbingtheweird.blogspot.com
    check it out for all your news of the random

Leave a Reply

Panorama Theme by Themocracy