Social media button floating side widget

Are you looking for a social media side bar widget for your website? Here it is!button

I was looking for some sort of Social Media widget for my websites, but they tend to be either not free, or not working/outdated. So I decided to make a up to date one, and share it!

sidebar wdiget


Simply copy the code into your HTML page, anywhere within the <body> tag, and the widget should appear on the right hand side of your page. Of course you can change the position, size, look of the widget by editing the CSS code.

You also need to modify the URLs to your own website for facebook/Google Plus/Twitter .

For those who are using blogs on blogger, WordPress etc, you can also have this by creating a custom Text box on the sidebar, and copy the code into the text area. For example in wordpress:


Here is the code:

<!-- SideBar Floating Share Buttons by Code Start -->


#social-widget {
 border: 1px solid black;



#social-widget .sbutton {
 margin: 5px;


<div id='social-widget' title="Share This With Your Friends">

<!-- Facebook -->
 <div class="sbutton">
 <div id="fb-root"></div>
 <script>(function(d, s, id) {
 var js, fjs = d.getElementsByTagName(s)[0];
 if (d.getElementById(id)) return;
 js = d.createElement(s); = id;
 js.src = "//";
 fjs.parentNode.insertBefore(js, fjs);
 }(document, 'script', 'facebook-jssdk'));</script>
 <div class="fb-like" data-href="" data-send="false" data-layout="box_count" data-width="80" data-show-faces="false">

<!-- Twitter -->
 <div class="sbutton">
 <a href="" class="twitter-share-button" data-url="" data-count="vertical">Tweet</a>
 <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);;js.src="//";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>

<!-- Google Plus -->
 <div class="sbutton">
 <div class="g-plusone" data-size="tall" data-href=""></div>

<script type="text/javascript">
 window.___gcfg = {lang: 'en-GB'};

(function() {
 var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
 po.src = '';
 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);


<!-- Please keep below intact -->
 <a href="" title="Get this Social Media Tool Bar for you own website" target="blank">
 <div style="clear: both;font-size: 9px;text-align:center;color:red;">
 Get this Widget

<!-- SideBar Floating Share Buttons by Code End– -->

9 thoughts on “Social media button floating side widget

  1. Divyanshu Asopa

    Can you tell me how to align the floating bar to the left? Just change the text in the line.. “#social-widget {
    border: 1px solid black;

    is not working for mee..

  2. Aimee Guerrero

    Hi, I would like to know the code of your floating social media here in this blog. The ICONS only. Thanks! :) Hope to know more from you. I really appreciate this post.

      1. Sandeep

        hiii Oscar,
        Can you please share the full code for floating buttons so that i can use it directly in my file

Leave a Reply

Your email address will not be published. Required fields are marked *

Are you Robot? *

For prompt technical support, please use our forum I check blog comments weekly.