How to add Google +1 button in thesis theme

Google is now focusing on the use of social media on search results. Previously google has tried this concept google buzz button. But now Google has launched google +1 button. It improves search engine ranking in google search results. So add google +1 button and improve your traffic.

In this post I am going to explain about, how to add Google +1 button in thesis theme?

In 2 simple steps you can add google +1 button to your blog post in thesis theme.

Step by step process.

1st step:

Copy below code and paste in thesis–>site option–>Stats and software scripts.

to get your code click here

thesis site option

 

2nd step

Copy below code and paste in Thesis–>custom_function.php
function googleplusonebutton() {
if (is_single()) { ?>
<div class=”googleplusone”>
<g:plusone size=”tall”></g:plusone>
</div>
<?php
}
}
add_action(‘thesis_hook_before_post’, ‘ googleplusonebutton ‘);

Copy below code and paste in Thesis–>custom.css

.custom .googleplusone { float:right; padding-left:5px; }

Now you can see Google +1 button in your blog post page like below image.

google +1 button post

If you like this post, share with your friends.

{ 3 comments… add one }

Leave a Comment