WordPress no doubt one of the most popular CMS and Google King of search engine. Recently, Google Announced its +1 Button and as a WordPress user you want to implement it on your blog so that you can increase your search engine rankings.
Well I’m using Thesis WordPress Theme and I face no problem in adding Google +1 Button and you can see it in action here:
In this post I’m sharing how to add Google + Button in Thesis WordPress Theme.
Step1: Log-in into wp-admin panel, go to “Thesis” tab and click on “Site Options” as shown below:
Step2: When you click on “Thesis” tab, it open new window like this:
Step3: Now follow this link and get your Google +1 Button from there:
Step4: Now copy this code:
<script type=”text/javascript” src=”http://apis.google.com/js/plusone.js”></script>
Step5: After copying above code, paste this code in “Stats Software/Scripts” as shown below and click on “Big Ass Save Button”.
Step6: Now click on “Custom File Editor”, as shown below:
Step7: Now select “custom_functions.php” and click on “edit file” as shown below:
Step8: Now copy this code:
function google_button_left1() {
if(!is_page()){
?>
<g:plusone size=”tall”></g:plusone>
<?php } }
add_action(‘thesis_hook_before_post’, ‘google_button_left1’);
Step9: After copying above code, paste it in “custom_functions.php” file and click on “Big Ass Save Button” as shown below:
Step10: Congratulations, you have successfully added Google +1 Button on your WordPress powered site.
Isn’t it too easy? Meanwhile if you have not get your copy of Thesis WordPress Theme, then get it right now:
Sign-Up Link for Thesis WordPress Theme
If you have any query let me know via comments. To get latest updates on Thesis Tutorials, do not forget to follow on Twitter and Like on Facebook
If you need any professional help in customizing Thesis WordPress Theme you can hire me or get in touch using Free WordPress Installation Service.
Techmistry says
I have tried this, but its not working…
Vivek Parmar says
Follow the steps again and still you have any problem let me know.
Charley Bach says
Got it and it works. Thanks a bunch. what if we wanted this to appear with posts or floating on the page. is it possible to show the code to allow that change?
News about the world says
I have tried it brother, but it is not working. You can view the source code of my website, and check it is present. However, it is not appearing in posts.
I have also tried the Google link unit How-to, but that one is also not working. 🙁
Vivek Parmar says
Give one more shot again, you will be able to add Google +1 button. If you are unable to add then let me know
news world report says
I am not sure, but when I added the code to addition scripts, it just worked. It was not working in the stats software and scripts section.
Thank you any way for your tutorial 🙂
Vivek Parmar says
@News World Report: this code works, it is working for me, try again hope it also works for you. If you have any query get in touch using contact form
Anil Agarwal says
Hi
I don’t know anything about PHP and all. ‘m also using thesis on my blog. I’m fine with the rest of steps, but I had problem at step 9. I’m unable to understand where I have to exactly place this code in custom_function.php file. I want to show Google plus one button at single post towards right with the rest of 4 icons available.
Please guide for the same.