Add Google’s 1+ icon to a WordPress Blog

Here’s a pretty simple tutorial to add the Google+ icon to blogs to allow people to 1+ your article:

Step 1 – get a Google Webmaster Tools account for your domain
Go to https://www.google.com/webmasters/tools and set up an account for your domain. This is actually quite useful because it tracks a few different things than analytics…such as search engine performance, keywords, etc.

Step 2 – copy the 1+ code for your site

Step 3 – paste the code into your WordPress template
There are 2 pieces of code to place. First, place this code in your header.php file in your theme editor:

<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>

Next, place this code in the content-single.php file in your theme editor right before the closing “header” tag in the “article” tag:

<g:plusone></g:plusone>

That’s it! Hope it works!