Monthly Archives: December 2017

How to Add Google+ "Add to Circles" Badge in your WordPress Site

Recently, one of our users asked us how they can add the Google+ “Add to Circles” Badge in their WordPress site. In the past, we have shown you how to add the Google +1 Button your WordPress Posts. In this article, we will show you how to add the Google+ “Add to Circles” Badge in your WordPress site.

Preview of how a Google+ Badge looks like:

Google+ Add to Circles Badge

Before we begin, you should note that this is only for Google+ Pages not profiles. Example of Google+ Page. Example of Google+ Profile.

First thing you need to do is put the following code in your <head> section of your site which you can modify by editing the header.php file of your theme.

<link href="{plusPageID}" rel="publisher" /><script type="text/javascript">
{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);

Don’t forget to replace the {plusPageID} with your Google+ Page ID. Your Page ID is a 21-digit string at the end of the URL. For example if your page URL is: then the numbers in bold is your Page ID.

Once you have added the header code, then all you have to do is place the following code wherever you want the Google+ Add to Circles widget to show. Most users like to display this in their sidebar, so you can either modify your sidebar.php file, or simply add it in a text widget area.

<g:plus href="{plusPageID}" size="badge"></g:plus>

For the Small badge, simply use this code:

<g:plus href="" size="smallbadge"></g:plus>

We hope that this article has helped you. If it did, then please consider adding WPBeginner in your Circle.