Add +1 To Thesis WordPress Theme

A sharp tutorial is available on the DIYThemes.com website, but you might also want to add it to The Loop of your main blog entry page for more exposure of your individual posts.

To do so, follow the steps in the tutorial, but change your custom function to:

function google_plus_one_output() {
if ( is_home() || is_single() ) {
	?>
<div class="my-plus-one">
 
<g:plusone size="medium" href="<?php the_permalink(); ?>"></g:plusone>
 
</div>
	<?php
	}
}
add_action('thesis_hook_before_post', 'google_plus_one_output');

This will allow the +1 box to show on both the homepage (is_home) of your blog and on the permalink (is_single) pages. The difference is that is adds the permalink address as a href variable in the +1 box instead of trying to grab it automagically from the page you are on when you click +1.

Enjoy.