I installed the +1 Button code script for our home pages. While it is working fine in Firefox, the button is not rendering in IE. Anyone has faced this problem? How does one configure for each browser?

Comments

ayesh’s picture

Are you using the raw code(from google) or Plusone module ?

meera2011’s picture

Yeah the two lines of code given by Google. It works fine on Firefox though. I use Drupal 6.22. I added the header block for the javascript and then added the +1 button code in the suitable block.

rahulbile’s picture

Cheers

meera2011’s picture

Ok thanks Rahul for the sweet module.

mattjallo’s picture

I just started using the +1 button a few days ago. I modified the code given by Google to load the .js src asynchronously, and then apply the render to the g element after the source is parsed. gapi.plusone.go() is the function which hydrates the g:pluson element into an iframe. jQuery is a dependency:

<div style="text-align: center; width:100%;">
  <g:plusone href="http://PhoenixDateIdeas.com"></g:plusone>
</div>
<script type="text/javascript">
  {parsetags: 'explicit'}
  (function ($) { 
    $.getScript('https://apis.google.com/js/plusone.js', function() {
      gapi.plusone.go();
    });
   })(jQuery);
</script>

Remember to replace the href with the url of your site. I created a new block, called it "Google +1" and put this code into the body. Then I added this block above the menu.

gawi’s picture

Why should we confine ourselves to just one add button. Go to http://www.addthis.com/ , configure your own look, script and put it in your site and you'll get more than 340 working (every browser) social add-buttons on your site, of course +Google is one of them.