Google+1 button

gaforester's picture
gaforester
Sun, 09/25/2011 - 20:57
#1
Google+1 button

Can anyone tell me how to add a Google +1 button to my posts along with the current twitter and facebook buttons. Thanks.

Neo's picture
Neo
Mon, 09/26/2011 - 01:34

Hi,

This is instruction how to add Google+1 button to Drupal themes:

Step 1: Open template.php, add this code to top of file:

drupal_add_js('https://apis.google.com/js/plusone.js', 'external');

Step 2: Open node.tpl.php and add this next twitter and facebook code (for example in line 60 node--blog.tpl.php in md_visual theme)

<g:plusone  href="<?php print $nodeurl;?>"></g:plusone>

Step 3: Check your site

Best,

Neo Khuat

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.