I have looked around the interwebs to find the easiest way to add a digg button with the sumbit feature to wordpress, but I could only find plugins, or other methods that seemed to complicated.
So here is the most simple solution for adding digg to you blog. The following is code from the digg website;
<script type=”text/javascript”>
digg_url = ‘WEBSITE_URL’;
</script>
<script src=”http://digg.com/tools/diggthis.js” type=”text/javascript”></script>
All you need to do is replace ‘WEBSITE_URL’ with ‘<?php the_permalink() ?>’ and place the code within the LOOP. (I put mine in the Main Index Template after the comments - you can edit this via wordpress in the theme editor.)
To show the Digg button when viewing a single post, you must also add it to the ‘Single Post’ template (also under theme editor). I placed this second set of code after the ‘tags’ and before the ‘postmetadata’.
Its as simple as that. For additional options you can add the following;
digg_bgcolor = ‘#ff9900′; (Background Colour)
digg_skin = ‘compact’; (Smaller Button)
digg_window = ‘new’; (Open in New Window)
source: blogger-off
Related Stuff
8 Fail Safe Tips On Creating An Awesome 404 PageOh the 404! Such a wonderful error to come across while browsing the web. Some are funny while others are ...
12 Essential Tips to Build Your First Wordpress ThemeI always wanted to contribute to the wordpress community by building a Wordpress theme and releasing it to public. After efforts of 20 days ...
SEO Your Wordpress TemplatesLike many people, when I first started blogging, I discovered Wordpress and it’s many features that made it easy to set up and get ...
Facebook Connect Wordpress Plugin LeakedA few sources have alerted me to a project that Facebook has been working on: integrating Facebook Connect directly with ...
Why is SEO so important to your siteYou have heard the phrase LOCATION LOCATION LOCATION. But wait, this is online! You don’t have to worry about location… or do ...
Be the first ... |Add your comment.
Your Comment ...
Name (required)
Email (required, hidden)
Website
