Enter your email address:

Thursday, July 22, 2010

ADD DIGG THIS SHARE COUNT BUTTON IN YOUR BLOG POSTS

As you know Digg is one of the major content sharing website in internet.  After our Facebook Share count button, we would like to present the code of  Digg this share count buttons for a blog post. Digg This button is of three types, Compact, Medium and Large. We recommend our readers to add the Medium button as we did in our blog. You may select the one button of your choice as described below. If you love this post, please don’t forget to Digg This.. Happy Digging…

How to add Digg This share count buttons to your blog

STEP A
Log in to Blogger Account, go to Layout -> Edit HTML and check the box "Expand Widget Templates". Now, find any of this code in your  template. (Please make a backup copy of your template before doing any sort of editing)

<div class='post-header-line-1'/>

OR

<div class='post-header-line'/>

 

STEP B
Then immediately after the above given code, paste the code given below. You may select any one of the three Digg This count button, copy and paste the code given there.

Compact Digg This Button

 DIGG THIS COMPACT BUTTON

<!--DIGGTHISBUTTONCOUNTER-CODESTARTS-http://businessvartha.blogspot.com--><div style='float:right;padding:4px;margin-top:-4px;'><script type="text/javascript">
(function() {
var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0];
s.type = 'text/javascript';
s.async = true;
s.src = 'http://widgets.digg.com/buttons.js';
s1.parentNode.insertBefore(s, s1);
})();
</script><a class="DiggThisButton DiggCompact"></a></div><!--DIGGTHISBUTTONCOUNTER-CODESTOPS-->

 

Medium Digg This Button

 DIGG THIS MEDIUM BUTTON

<!--DIGGTHISBUTTONCOUNTER-CODESTARTS-http://businessvartha.blogspot.com--><div style='float:right;padding:4px;margin-top:-4px;'><script type="text/javascript">
(function() {
var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0];
s.type = 'text/javascript';
s.async = true;
s.src = 'http://widgets.digg.com/buttons.js';
s1.parentNode.insertBefore(s, s1);
})();
</script><a class="DiggThisButton DiggMedium"></a></div><!--DIGGTHISBUTTONCOUNTER-CODESTOPS-->

 

Large Digg This Button

 DIGG THIS LARGE BUTTON

<!--DIGGTHISBUTTONCOUNTER-CODESTARTS-http://businessvartha.blogspot.com--><div style='float:right;padding:4px;margin-top:-4px;'><script type="text/javascript">
(function() {
var s = document.createElement('SCRIPT'), s1 = document.getElementsByTagName('SCRIPT')[0];
s.type = 'text/javascript';
s.async = true;
s.src = 'http://widgets.digg.com/buttons.js';
s1.parentNode.insertBefore(s, s1);
})();
</script><a class="DiggThisButton DiggLarge"></a></div><!--DIGGTHISBUTTONCOUNTER-CODESTOPS-->

Something to remember:

  • You may change the position of this button by changing the right to left or center.

Check the preview of your blog, when you finish the pasting of the code. In the preview you can see whether the position of the Counter button is correct or not. Any problems? feel free to ask me..

More Buttons to Add:

2 comments:

shabnamahsan said...

Hi Reetha
I added this on my blog but digg count is not showing...my post High Heels: Friend Or Foe have 25 diggs but its not showing any.......my delicious count button have same problem...plz help me

P. Reetha said...

Dear Maam...thankyou for commenting here. Well,we have inspected your site. Please note that this widget will show counts based on the URL of the page which shows this widget. If you have three or more post in the home page then all the widget in that page will show the number of links in those widgets from ur home page. At the same time, individual posts , with a different URL will only show when these widgets are viewed on that individual posts. This is because, while submitting a page, the widget automatically follows each URL..

As I said above, these widgets may be showing the count based on your Homepage URL, and not on those posts. Thats why both are different.
Hopes that you are clear.....
Please feel free to ask

Thank you

Reetha

Blog Widget by LinkWithin