Background
It been almost two and a half years since I am blogging on bloggers and I though it's time I see what wordpress has to offer. To surprise the UI is kind of complex and have limited widget support. Also it does not allow you to add plugins. After a few customizations I decided to add a Google+ followers widget but there unfortunately isn't one. Hence this post. It's a simple html/javascript. So you can plug it into any website. Bloggers as you know already has a widget for this.
How To Add Google+ Follower Widget in your blog/website
- First create a simple text/html widget
- Next add following javascript code to it
1 2 3 4 5 6 7 8 9 10 11 12 13 | <div class = "g-plus" data-action= "followers" data-height= "300" data-href= "https://plus.google.com/102342595285863325267" data-source= "blogger:blog:followers" data-width= "320" > </div> <script type= "text/javascript" > (function() { window.___gcfg = { 'lang' : 'en' }; var po = document.createElement( 'script' ); po.type = 'text/javascript' ; po.async = true ; var s = document.getElementsByTagName( 'script' )[ 0 ]; s.parentNode.insertBefore(po, s); })(); </script> |
- Next Save and Publish. You should now be able to see the widget on your wordpress site.
No comments:
Post a Comment