How To Add Your Author Image To Google Search Results

Google recently made a change to its search engine results, where author images will be shown next to search results for sites that are correctly setup.  The aim is to help search engine users identify good content and to learn more about the author.

This is a great way to make your results stand out from other listings, and adding support to your blog is simple to ensure that all your posts show your Google+ profile image.

Add rel=”Author” to Each Post

To let google know who wrote each post, you simply have to add rel=”Author” to the link to the author post page.   Just open your single.php file (or equivalent for your theme e.g. content-post.php) and add rel=”Author” to the template.  The finished result should look something like this:

<a href="" title="Posts by Everton" rel="author">Everton</a>

Add rel=”me” To Your Author Bio Page

In stage I we ensured that all links to your author page included rel=”author” – now we need to ensure that on this page you link to your google+ profile using rel=”me”. This is a bit trickier as WordPress removes all rel attributes from the author bio section.  To overcome this, add the following code to your functions.php file:

function allow_rel() {
global $allowedtags;
$allowedtags['a']['rel'] = array ();
add_action( 'wp_loaded', 'allow_rel' );

Now, you can add the following additional line to your bio info:

<a rel="me" href="">my Google+ Profile</a>

Add Links To Your Author Pages On Google+

The final step is to add links to your your author profiles on google+ – you can do this for as many sites you contribute. Just open your Google+ profile and in the links on the right, add links to your Author pages, not the site homepages, in the other profile or contributor sections.

Check It’s Working Properly

To check your google+ authorship is working properly, go to Google’s rich snippets tool and enter in one of your urls. If there’s a problem, the tool will tell you how to fix your authorship.

, , , ,

Comments are closed.
Skip to toolbar