The Google +1 Button
Today Google announced the official release of their Plus One button. As a primer, if you didn’t know, adding +1 to your website is a quick, easy two-step process.
Step One
First, you need to add a javascript include file to your webpage:
Step Two
Next, add a special html tag wherever you want to place the button:
Now that we covered the basic primer, the question is how to add the Plus One script into Thesis Theme.
Btw if you don’t know about Thesis theme for WordPress – what are you waiting for? GET THESIS HERE!
How To Add The +1 Script to Thesis Theme
The file you want to work with is the custom_functions.php file in Thesis. This file is located in /wp-content/themes/thesis_18/custom/ folder. If you are not familiar with this file, or with custom functions at all for that matter, this is really very simple. Just copy and paste the following code into that file:
function plusone_script () { ?>
<script type=”text/javascript” src=”http://apis.google.com/js/plusone.js”></script>
<?php }
add_action(‘wp_head’, ‘plusone_script’);
That’s it! Save the file and you can now add the special html tag anywhere within your page.
What I like to do is wrap the plusone tag in a special div with a unique ID. That way I can call the ID easily in my custom.css file. For example:
<div id="plus-one-btn"><g:plusone></g:plusone></div>
For more advanced configurations, visit Google’s help page on the Plus 1 button.
Feedback or questions are welcome in the comments section below.
Or, you can click on +1 right here to say thank you!
Incoming search terms:
No related posts.




{ 2 comments… read them below or add one }
I’m not entirely clear on the +1 button. I guess it is sort of a popularity contest?
What if good content isn’t popular? Does that content get suppressed in favor of popular content that may not be very good?
For example, for the keyword “breast” would Paris Hilton’s latest beach pictures rank higher than a cancer awareness site simply because there are a lot of people giving the beach photos a +1?
Richard@Police Training´s last [type] ..Police Knives- Steel at the Ready–Part IV
Hi Richard, I’ve thought about that too. On the positive side, maybe promoting the “popular” content will be a good thing. I’m thinking of spam sites that will hopefully not get that many +1s at all. Nobody likes having to wade through those when you’re looking for some good information. But the con to that is just what you mentioned, that the pages with actual great content could be suppressed in favor of something that is simply more popular.
We’ll have to see how it all plays out. At least Google has said that this will just be one indicator of many in their search algorithm. If anything I hope it filters out more of the spam sites…