How To Add Digg Button to Every Blogger(Blogspot) Posts

Posted by Lasantha Bandara on April 2nd, 2009 File Under : bookmarks, button1 Comment


1. login to your Blogger Dashboard. Go Settings-> Archiving, set the “Enable Post Pages” to “Yes” and save the settings.

2.Now go to Blogger Dashboard->Layout->Edit HTML

3.Check the box “Expand Widget Templates".Now search the follow code.

<p><data:post.body/></p>

If you want the button to show at the top right corner of your post, replace the above code with this.

<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> <p><data:post.body/></p>

If you want the button to show at the end of your post, replace the above code with this.

<p><data:post.body/></p>
<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>

If you want the button to show at top left corner of your post, replace the above code with this.

<div style='float:left; margin-right: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>
<p><data:post.body/></p>

File Under : bookmarks, button

One Response to “How To Add Digg Button to Every Blogger(Blogspot) Posts”

  1. Blogspot html coding says:

    Friend its so good and informative site. Thanks for sharing this site.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.