Like , +1 , Tweet Widget


  • GNU/Linux

    Hi, wondering if I could have these 3 buttons on global sidebar as in NodeBB community home page. Should we do it using custom HTML ? If yes, share the code please..



  • Facebook

    <iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2F YOUR FACEBOOK URL HERE &amp;width&amp;layout=button_count&amp;action=like&amp;show_faces=false&amp;share=false&amp;height=21&amp;appId=135888533251344" scrolling="no" frameborder="0" style="border:none; height: 21px; overflow: hidden; width: 105px;" allowTransparency="true"></iframe>
    

    Twitter

    <a href="https://twitter.com/TwitterUsername" class="twitter-follow-button" data-show-count="true" data-dnt="true">Follow @TwitterUsername</a>
    <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
    

    The +1 widget will be available online somewhere, I don't use Google +, it's awful. Change TwitterUsername and YOURFACEBOOKURL to your own, the facebook one already includes the https part.


Log in to reply
 

Suggested Topics

| |