The example provided by StumbleUpon edits the Single.php of a typical Wordpress theme. The button will only appear under the entry after the reader has click the entry title to go into single.php.
Why not have the StumbleUpon button on the main index page of Wordpress? To do so, go to Theme Editor to edit Main Index Template (Please backup the Main Index Template which is index.php before you proceed):
|
Add the following HTML block after the Comments codes:
<a href="http://www.stumbleupon.com/submit?url=<?php the_permalink(); ?>&title=<?php the_title(); ?>"><img src="http://www.yoursite.com/images/stumbleit.gif"> Stumble it!</a>
|
|
Do change the path to the GIF button file accordingly instead of http://www.yoursite.com/images/stumbleit.gif before saving.
You should have stumble button at your main index page!





Entries (RSS)
July 9th, 2007 at 11:55 am
Appreciate the tip!
July 9th, 2007 at 12:00 pm
July 9th, 2007 at 4:18 pm
Hopefully we can do it right. Thanks for the tip!
October 1st, 2008 at 11:03 pm
Cool thanks so much