How To Add Author Code To WordPress (easy way)

Google+ Author Tags Now Only Require Google Plus Badges or so we believe…

Want to see that author thumbnail of your bright shiny face in Google search? It is now easier than before, with just a Google+ badge

We believe that Google has finally learned their lesson, since 99% of all WordPress users don’t know how to even find the head section, read basic HTML, or have just about ZERO confidence when it comes to editing WordPress code files. WordPress users use plugins, that’s it. Without a plugin, they are sunk when it comes to adding G+ code to WordPress or Blogger either.

Remember the main reason Google Friend Connect failed is it originally required you to FTP files to your site. Let’s hope Google has smartened up a bit.

IMPORTANT: This is a test to see if author thumbnails only need the badge, so we are going to test this on my site: KeyWebData.com…

That site currently shows author thumbnails in search, but it does link to my Google Plus profile the old way. Now that I believe all it takes is the badge, I have removed the author links and now only use the badge on the site.

If what I believe is true, then KeyWebData.com will continue to display author thumbnails in Google search results without using the old author links or the current author HTML tags.

Here is how to add the badge and authorship the easy way

Step #1

First off create a text widget in WordPress. Log into WordPress, go to Appearance, then click Widgets. Once there drag a Text widget to your side bar.


(click for full size)


Adding a text widget to the WordPress sidebar

Step #2

Next go to the code generator and and get the code for a Google Plus badge. The direct link to the personal badge code is here, and the badge for business pages is here…


(click for full size)


Adding the badge code to the widget

Get the badge code, right click, copy, go to step 3.

Step #3

Head on back to your WordPress Text widget, below the paste the code in.


(click for full size)


Adding the badge code to the widget

Click save. It’s just that easy, a caveman could do it!

You should not see a badge like mine in the right hand sidebar of this site.

If you would like to create a more interesting Google+ badge, I have some simple to code to make a phat G+ badge like mine here….

Step #3.5

What about Blogger sites? Simply use the same steps outlined above and add the HTML / JavaScript gadget to your Blogger sidebar. Also you should already see authorship showing for Blogger sites if you have the author of the blog set to the same Gmail address as you use for Google+ logins. Clients of mine have showed authorship validation simply by doing what I have just outlined.

Step #4

Then test to see if it works here:

Google Rich Snippet Testing Tool

You can also see my site, KeyWebData.com using the exact code and validating here, and it has for over 9 months now using nothing more than a link tag in the side bar.


(click for full size)


All of Chris Lang's sites showing G+ author thumbnails

Remember that author thumbnails in Google search pre-date Google+ release in late June, 2011. Plus, there has been tons of changes to this code over time.

If your code throws an error saying something is wrong, it’s is probably because you did not link to the site from your Google profile, or did not do so with the exact URL. You must link to the site we are testing, with exactly the same URL structure.

This possible error depends on your site setting in Google Webmaster Tools. If you have not set a preference to www. or the the lack of it, it will throw an error as you can see this site doing in the link, testing GooglingSocial.com without the www. in the URL.

That means of you are using www. in your links from your Google+ profile, then you must use them in the testing tool.

If it is a page badge you are testing, then the same thing applies, you must link to the site, with or without the www. in the URL.

So if you have set your blog to always use www. in the domain or links, you must also use the same or you may not see the image from your Google+ profile.

Add the author link tag to the head or not?

Of course I advocate adding the link tag to the head section of WordPress. That file to do so can be found in WordPress by going to Appearance, then Editor, then opening the header.php file.

But I wanted to show you that if you do not have the skills to do so, this simple badge can get it done for you today, without adding a plugin, or having the skills to edit a HTML file.

Google used to supply the link tag below in the badge widget I just showed you how to add. But now they have removed it in favor of the author url in the last line of badge code.

Step #5

There is some evidence that you have to add your author code to see the actual thumbnail image. If you feel the same way, here is the code to do so. So….

Add this code to your new text widget if you are adding the personal badge:

<link href=”https://plus.google.com/YOUR-G+-PROFILE” rel=”author” />

Add this code to your new text widget if you are adding the publisher or business page badge:

<link href=”https://plus.google.com/YOUR-G+-PROFILE” rel=”publisher” />

We will replace the YOUR-G+-PROFILE with the same 21 digit numeric string you got from your Google profile for the widget.

We will return to this post later the week and determine if my site, KeyWebData.com, is still showing G+ author thumbnails in search.

Hope this helps! – Chris


21 comments on “How To Add Author Code To WordPress (easy way)

  1. Chris,

    Looks like a worth test to see if things are really getting simpler to make the rel=author work (read: make my pretty pic show by my stuff on the search pages).

    Are you sure that since your test site already had the author pic showing, that this attribute is not ‘cached’ in Googleville and no matter what you do it will remain?

    i.e. it may be important to test this out on a site that ‘never had’ the author pic to begin with.

  2. Chris,

    Looks like a worth test to see if things are really getting simpler to make the rel=author work (read: make my pretty pic show by my stuff on the search pages).

    Are you sure that since your test site already had the author pic showing, that this attribute is not ‘cached’ in Googleville and no matter what you do it will remain?

    i.e. it may be important to test this out on a site that ‘never had’ the author pic to begin with.

  3. Ronnie, I tested this a few weeks ago, took the rel=author off this blog, it disappeared off Google search in a matter of days.

    Added it back, hard coded in the <head> section, and it was back in a few days.

    It would only make sense to me, that you could remove an author from a multi author blog in an adversarial instance.

    Actually I hope that it does get removed, since that will be a definitive test. Again, multivariate testing is the only thing I believe.

  4. Ronnie, I tested this a few weeks ago, took the rel=author off this blog, it disappeared off Google search in a matter of days.

    Added it back, hard coded in the <head> section, and it was back in a few days.

    It would only make sense to me, that you could remove an author from a multi author blog in an adversarial instance.

    Actually I hope that it does get removed, since that will be a definitive test. Again, multivariate testing is the only thing I believe.

  5. I can’t get the google +1 thing to work on my website at all! I did everyting google said to do: the schema.org thing and the other thing they wanted me to add: AUTHOR: my name. AND then some other kind of script with my google profile link (that loooong series of numbers). I did it all! Still on the testing tool thing- NOTHING! Nada! Google does not recognize me as the author, and cant fetch my page A total NOTHING! What’s a non geek guy to do? I give up.
    Kayelle Allen referred me to your products. Maybe she can help?

  6. Hi chris

    I added the profile codes a while back on three of my Blogs using different ID’s, different profile images show in searches depending on which google profile i am logged in as.

  7. Hi chris

    I added the profile codes a while back on three of my Blogs using different ID’s, different profile images show in searches depending on which google profile i am logged in as.

  8. Chris,

    From my understanding the author images will show up in the SEPRs using the badges, but not Businesses? Can you shed some light on that?

  9. As you can see in my screen shot above, my business pages profile thumbnails do not as yet show up on my sites.

    http://www.googlingsocial.com/images/testing-author-tags.png

    But many things are happening right now that say they may, or will soon. We don’t know and Google is not telling us yet.

    So Andrew, we are talking business pages here:

    Google Plus For Business
    https://plus.google.com/106782479227458525059

    Email Delivery Jedi
    https://plus.google.com/113198487085205492763

    Gadget MVP
    https://plus.google.com/111194754831086035492

    All 3 of these pages support sites with the proper code in them, but as of yet, I have not been able to see my Business page profile show in Google organic (universal)_search.

    Although business page thumbnails do show in social search. Does that answer your question?

  10. As you can see in my screen shot above, my business pages profile thumbnails do not as yet show up on my sites.

    http://www.googlingsocial.com/images/testing-author-tags.png

    But many things are happening right now that say they may, or will soon. We don’t know and Google is not telling us yet.

    So Andrew, we are talking business pages here:

    Google Plus For Business
    https://plus.google.com/106782479227458525059

    Email Delivery Jedi
    https://plus.google.com/113198487085205492763

    Gadget MVP
    https://plus.google.com/111194754831086035492

    All 3 of these pages support sites with the proper code in them, but as of yet, I have not been able to see my Business page profile show in Google organic (universal)_search.

    Although business page thumbnails do show in social search. Does that answer your question?

  11. Yes, I guess where I was going with this Chris, is that the business profile thumbnail is not yet available, so I should stick with the author tag? Or do i have this all backwards. I am just learning and half way through +Guy Kawasaki book, What The Plus… So My learning curve is still straight uphill. I found his post by following you on Google +, as a recommendation from +Mari Smith. So thanks for the help…

  12. Yes, right now we are focusing on author thumbnails, then segregating content via our business pages.

    So, if I have G+ centric marketing content, I post it first to my G+ For Business page, then share it via my personal profile.

    But I HAVE to do that, because I built my personal profile first since I was a day one G+ user, over 3 months before business pages came out.

    If biz pages had been available first, I would have ignored my personal profile.

    What author thumbnails do, is get a much better click thru rate via Google search. What we really want is biz profile thumbnails to come alive. I am sure they will in the future, but so far I have yet to see one.

    Also your G+ url is breaking, can you post a link to the correct URL and I will edit your posts to link properly?

    They should look like this:

    https://plus.google.com/107656088609554509650/posts

    Without the /u or the /b …

  13. Sure, Chris, thanks for pointing that out.

    My business Google+ page is :
    https://plus.google.com/110021004057879690771/posts

    My personal is:
    https://plus.google.com/111906423543895305877/posts

    As I said, the learning curve is still at an all time high, considering I just started with Google+ about a week ago pr so..

  14. Sure, Chris, thanks for pointing that out.

    My business Google+ page is :
    https://plus.google.com/110021004057879690771/posts

    My personal is:
    https://plus.google.com/111906423543895305877/posts

    As I said, the learning curve is still at an all time high, considering I just started with Google+ about a week ago pr so..

  15. Hey Chris, As you know I have a lot of guest posts on my blog. I’m wondering if it makes more sense for my image to show up on the search results or theirs? After all they are the ones who wrote the post. The Thesis blogskin I use allows each author to add their Google + id and I know that a few of them have added my blog to their profiles. Let me know what you’ve seen so far on this topic. Thanks!

  16. Ileane, I would base it on this:

    Does the poster have more recognition than you? I am all about converting clicks out of Google search.

    Second, do guest blog posts bring in more incoming links and drive my site up the Google SERPs?

    Look at SocialMediaExaminer.com, they have built one of the most well known business blogs in the world on guest posts.

    They do not give author info to their guest writers. The question is should you?

  17. Ileane, I would base it on this:

    Does the poster have more recognition than you? I am all about converting clicks out of Google search.

    Second, do guest blog posts bring in more incoming links and drive my site up the Google SERPs?

    Look at SocialMediaExaminer.com, they have built one of the most well known business blogs in the world on guest posts.

    They do not give author info to their guest writers. The question is should you?

  18. thank for code i just got what i want my authorship

  19. Great post Chris! Thanks for the help with good tutorial!

  20. Thanks a lot for this complete tutorial, it seemed a little complicated to me to activate my authorship but now it’s much more clear, thanks for the help :)

  21. Thanks a lot for this complete tutorial, it seemed a little complicated to me to activate my authorship but now it’s much more clear, thanks for the help :)