How to add Mashable style Social Media box without Plugin

Social media is an important part of every website and blog. Mashable have a clean and beautiful Social Media box in right sidebar. In this tutorial we are going to create simple Mashable style social box which you can use on your blog.

Mashable style social box

Copy below code in your blog sidebar

[html]<div id="di-bar" style="width:300px;">
<div class="di-likebox" style="background: white; padding: 10px 10px 0 10px; border: 1px solid #D8E6EB; border-image: initial;">
<iframe src="//www.facebook.com/plugins/like.php?href=https://facebook.com/designsidea&amp;send=false&amp;layout=standard&amp;width=280&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font&amp;height=80&amp;appId=234513819928295" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:280px; height:80px;"></iframe>
</div>
<div class="di-googleplus" style="background: #F5FCFE; border-top: 1px solid white; border-bottom: 1px solid #EBEBEB; border-right: 1px solid #D8E6EB; border-left: 1px solid #D8E6EB; border-image: initial; font-size: .90em; font-family: Arial; color: black; padding: 9px 10px; ">
<g:plusone size="medium" annotation="inline" width="280" href="http://designsidea.com/"></g:plusone>
<script type="text/javascript">
(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>
</div>
<div class="di-twitter" style="background: #EEF9FD; padding: 10px; border: 1px solid #C7DBE2; border-top: 0; border-image: initial;">
<a href="https://twitter.com/designsidea" class="twitter-follow-button" data-show-count="true">Follow @designsidea</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>
</div>[/html]

Don’t forget to change

  • https://facebook.com/designsidea from line 3 with your Facebook fan page URL.
  • http://designsidea.com/ from line 6 with your blog link.
  • Both ‘designsidea’ from line number 16 with your Twitter username.

If you are facing any problem, feel free to drop a comment below.

 

About Suraj

Suraj Vibhute is a passionate blogger, self taught designer, web developer and founder of Designsida.com

Comments

  1. thank you ! thank you !! thank you !!!
    Thanks a lot . I am Searching Every Very for this. And I got It . thanks for sharing.

  2. Merci pour l’astuce !

  3. suraj it will be good if you add the good minimal subscription button or email newsletter. :D

  4. i m really thankfull to you to give me this solution… i was searching for this.. :) :) now i can modify it…

  5. Wow! thanks alot it worked and it made some positive impact on my blog.

  6. Thanks

  7. Really useful script.
    Thanks Suraj

  8. Thanks for this code, it worked but is there a way we can add subscription form to it? Please share with me via email

  9. Thanks for the script i apply it on my my blog after making a fan page hope it’s work fine for me.

Speak Your Mind

*