How to put a Digg badge on every page of your blog, automatically

February 13th, 2009 § 2

The easiest way to put a digg tag on every page of your blog, is to use WordPress widgets.

Go to the widgets, add a text widget and paste the following code in:

  1. <script type="text/javascript">
  2. digg_url = document.location.href;
  3. </script>
  4. <script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>

Then, go to your homepage and refresh!  If your page is in Digg you will see how many times it has been dugg. If not it will say “submit”. Then, if someone likes it or you want to put the article into digg, then just click the badge!

Good Luck!

Sphere: Related Content

Tagged: , , , , , ,

§ 2 Responses to “How to put a Digg badge on every page of your blog, automatically”

What's this?

You are currently reading How to put a Digg badge on every page of your blog, automatically at Matt Bernier.

meta