Forums

Google Plus One Button
Show in only on posts and pages, but remove it from the homepage (5 posts)

  1. utnalove
    Member
    Posted 11 months ago #

    Hello, please take a look at glamourina

    As you can see in every post in the homepage there is the +1 button. Is it possible to add an option as there is in the facebook-like-it-button so that the +1 button will be removed from the homepage?

    It makes the site load slower.

    Thank you

  2. sabinou
    Member
    Posted 11 months ago #

    With the plugin, probably not.

    But you can do without a plugin, and then it would work.

    - deactivate the plugin
    - edit your header with that code above the </head> part :
    <script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script>
    - edit your template's single.php (the pages of the posts) and add wherever you like
    <g:plusone size="medium"></g:plusone>
    You may edit the "medium" size as you see fit, ask Google precisely if you want more.

    And if you want to toy with more advanced settings, this is the way to avoid having something - like the google +1 button - to be shown on the index page, and to be shown anywhere else :

    <?php
    if ( is_home() ) {
    echo '<g:plusone size=small></g:plusone> ';
    } else {
        // do nothing
    }
    ?>
  3. jeremyarntz
    Member
    Posted 11 months ago #

    Yep this is on my list of features to add. Look for a new version in the next few days.

  4. utnalove
    Member
    Posted 11 months ago #

    cool, that would be a nice feature

  5. utnalove
    Member
    Posted 11 months ago #

    Hello, how is going the development of this new feature?

Reply

You must log in to post.

About this Plugin

About this Topic