Google+1 button

gaforester's picture
Sun, 09/25/2011 - 20:57
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
Mon, 09/26/2011 - 01:34


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('', '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


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.