How to integrate a “Digg This” Button in a WordPress Blog’s index.php


So you want to integrate a Digg This button on your wordpress powered blog huh ? You might have seen most of the bloggers integrate a digg button right in their posts like the one. Digg it if you like it !

Isn’t integrating it beside all the posts as simple as this

<script type="text/javascript">
digg_url = 'WEBSITE_URL';
</script>
<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>

Well if you are using the above code on yout index.php file then forget about it working because it will digg your homepage URL. But what if you want to integrate a digg button of each of your posts right on your homepage ?

Try this..

<pre class=”javascript” name=”code”>&lt;script type=”text/javascript”&gt;
digg_url = ”;
&lt;/script&gt;
&lt;script src=”http://digg.com/tools/diggthis.js” type=”text/javascript”&gt;&lt;/script&gt;</pre>

I haven’t checked the above code, but I am pretty positive it will work. If it doesn’t work for you then please let me know

Related posts:

  1. How to create Rounded Corners using CSS
  2. WordPress Plugin – Techytube
  3. WordPress Plugin – Thumbs Me Up!
  4. How to remind your visitors to stumble you
  5. How to Create Post Accordions in WordPress


The author is a small business owner himself specialising in Web Development. He runs Insight Studios which offers specialized Web Development, SEO Services and PPC Management for Small Business and SME thus ensuring growth and prosperity using the power of social media.

Share This Post

Related Articles

Leave a Reply

© 2012 MyGeekPal. All rights reserved. Site Admin · Entries RSS · Comments RSS
Designed by Insight Studios