Tipsglobe Logo Facebook Share Twitter Share Google Share LinkedIn Share StumbleUpon Share

0
It’s been awhile since I last logged into my Google Adsense account. I did so for the first time in a couple months and noticed a new Google feature called Google +1. It is a button that allows users to recommend your content to friends and content on Google search.
Adding the button to your pages could result in increased traffic and increased quality of traffic. If users are recommending your pages to their friends, word of mouth referrals tend to hold more weight.
Adding the code is very simple, of course that’s a matter of opinion. The process is similar to adding the FaceBook LIKE button, Twitter button, or –back in the old days– Digg button. 
Here is a video from Google that tells more about it. If you need help adding the button to your WordPress theme let me know.

Here’s a copy of the custom php code I wrote for my WordPress theme. Feel free to use for your blog and share with others.

Code for header.php file

Add this line of code directly below the <?php wp_head(); ?> line:
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>

Code for index.php file and single.php

Insert this code directly below the post title, or author line. Usually this is the <h2>TITLE</h2><small>Author Info</small> line:
<p><g:plusone size="medium" href="<?php the_permalink() ?>"></g:plusone></p>
That’s it. After you save your changes, people can start adding +1 to your pages and you can kick back and enjoy an increase in search traffic and quality of traffic.
Did you like this post? If so, click the 1+, LIKE, and SEND button and share it with your friends! Did you hate it? Click the buttons anyway and tell everyone why it sucked! You might even feel compelled to speak your mind on this page. If so, you're welcome to post a comment below. Doing so will get you some added traffic to your blog! Love it or hate it, it's all good to me!

Post a Comment Blogger

 
Top