Hello,
I used the php condition "is_home" to restrict the loading of the Google +1 button only on my home page, not inside the internal pages.
However, I noticed that the +1 button is also shown in the archives pages, I'm puzzled !
For instance, if I load "http://www._my_website_.net/page/13/", there WILL be a google +1 button, showing a zero count (unsurprisingly).
The +1 button isn't shown on posts or pages, it's just shown in the archives pages. You know, when you click the "older posts" link and then navigate through the lists of older posts.
Here's my code :
<?php
if ( is_home() ) {
echo '<br><br><g:plusone size=small></g:plusone>';
} else {
// do nothing, kthxbai
}
?>
Please, would you know why the is_home is ignored, and how I could fix that error ?
Thank you very much if you can help :)
(PS : I deliberately refuse to use a widget or a plugin to manage this stuff, I want it hardcoded)