Home » » How to add Google Plus button to Blogger Post

How to add Google Plus button to Blogger Post

Google Plus button is a simple plugin that lets people quickly share content. It can also display how many have +1d your Posts. Lets find out how to include this button in every Post.


  • It is always a good practice to first take a backup of Blogger Template before modifying any code in the template.
  •  Search for </body>
  •   Copy following code and paste just after code </body>
<script type='text/javascript'>
  (function() {
    var po = document.createElement(&#39;script&#39;); po.type = &#39;text/javascript&#39;; po.async = true;
    po.src = &#39;https://apis.google.com/js/plusone.js&#39;;
    var s = document.getElementsByTagName(&#39;script&#39;)[0]; s.parentNode.insertBefore(po, s);
  })();
</script>

  • Paste the following code wherever you want to display Google Plus button.   
            <div class='g-plusone' data-size='medium'/>
  • 'Save Template'
  • Now you can see  Google Plus button appearing in your Post.




Share this article :

No comments:

 
 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. BloggerTrails - All Rights Reserved
Template Created by Creating Website
Proudly powered by Blogger