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.
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
- 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>
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
- Paste the following code wherever you want to display Google Plus button.
- 'Save Template'
- Now you can see Google Plus button appearing in your Post.
No comments:
Post a Comment