Add Google plus button to WordPress theme

Gowtham V
2 Min Read

Google plus  button is very important for every blog as Google search is impacted by Google plus one data.You can see your +1 metrics in your webmaster tools.Adding a Google +1 button near or below the title of the post can increase the chances of  the readers sharing the post via Googleplus.

We have made a tutorial on how to add google plus one button without using plugins in wordpress

Google plus one button,Google +1 WordPress

Add google plus  button to wordpress theme:

Follow these simple steps

1.Open your header.php file via Filezilla FTP client or through Appearance>>Editor in your WordPress dashboard.

Note:Backup your files before editing it.

2.Now find the below code in your header.php file


3.Right before/above  the above code paste the below code or the js code f

<script type=”text/javascript”>
(function() {
var po = document.createElement(‘script’); po.type = ‘text/javascript’; po.async = true;
po.src = ‘’;
var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(po, s);

4.Go to Google plus one customizer to customize the button as you want it .You can choose the sizes and annotation type as you want by seeing the preview.I have posted the code below for a medium size with bubble annotation.

5.Copy the below code and paste it where you want it to appear in your theme file.

<!– Place this tag where you want the +1 button to render –>
<g:plusone size=”medium”></g:plusone>

6.Now save your theme files.You did it.

You can also add Google plus one share button easily using a WordPress plugin.Here is the link for it

Also read:

Plugin central- Install multiple plugins at once

Google +1  button resources :

For Thesis Theme users: Add google plus button to thesis theme

For webmasters and programmers : Google +1 Button API

Hope you have added Google plus button to your WordPress theme successfully.If you face any problems in the appearance or placement of the button, do contact us via comments.We will be very glad to help you out.

Happy blogging:-)

Share This Article
Leave a comment

Leave a Reply

Your email address will not be published. Required fields are marked *