Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

My website is http://tablified.com and I have managed to setup the Google Plus script. The issue is that every page of the site displays a different Google Plus count. For example, if you go on my site you will see that I have about 180 Google Pluses. Now, if you click on something like "Tablified Apps" you will see that the Google Plus number on the top left corner of the screen is changed to 21. How do I display the Google Plus account for the main page across the entire website regardless of the page being displayed? Where should I place the script exactly? I am running this site on Wordpress. Perhaps a plugin could fix this and save me the hassle? The issue is that I need to have it at that EXACT location and I feel like a plugin would not accomplish this. Thanks for your help!

share|improve this question
add comment

3 Answers 3

You have to explicitly set the target url or it will use the rel canonical (if present) or grab URL of the current page via js.

Use the button generator and click advanced options to set the target URL, or:

<g:plusone href="http://tablified.com/"></g:plusone>
share|improve this answer
    
Worked like a charm! Thanks!! –  Ayman Aug 28 '11 at 1:59
add comment

If you change the target URL, you need to be aware of that your visitors will only be able to Google +1 one time and that's for the home page. If a user likes another section or page of your site like the Tablified Games they won't be able to Google +1 that page because they have already done that because it's always the same Google +1.

And you have more than the 180 Google +1. The 180 are just for the homepage and the others you see are for the specific pages.

share|improve this answer
add comment

Use this snippet

<!-- Place this tag in your head or just before your close body tag -->
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>

<!-- Place this tag where you want the +1 button to render -->
<g:plusone></g:plusone>
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.