We all are well aware of the importance of social media integration in Blogs and websites and the magic it can play to bring in viral traffic. With content that is capable of deriving attention, social media is certainly not going to put you down in that regard.
Looking forward to that, we today have yet another social media sharing widget for Blogger and WordPress blogs that grabs attention of the reader due to its 'Thumbs Up' icon embedded with in it. The widget holds social sharing buttons for Facebook, Twitter and Google+.
The widget slides from a certain distance from top. So you can setup a specific distance after which it could start sliding down with the page.
Tip: Enhanced Social Sharing Widget Slides After A Certain Distance From Top Implementation:
Go to Blogger
Dashboard >> Layout >> Add a Gadget >> HTML/JavaScript and paste the following code in it:
<script>
window.onload = function() {
function getScrollTop() {
if (typeof window.pageYOffset !== 'undefined' ) {
// Most browsers
return window.pageYOffset;
}
var d = document.documentElement;
if (d.clientHeight) {
// IE in standards mode
return d.scrollTop;
}
// IE in quirks mode
return document.body.scrollTop;
}
window.onscroll = function() {
var box = document.getElementById('Scrolling-fixed'),
scroll = getScrollTop();
if (scroll <= 700) {
box.style.top = "760px";
}
else {
box.style.top = (scroll + 60) + "px";
}
};
}
</script>
<style>
#Scrolling-fixed {
position: absolute;
}
#floatdiv {
bottom:15%;
margin-left:-850px;
z-index:-9999;
float:left;
padding-bottom:2px;
}
#mbtsidebar {
background:#fff;
border-top:2px solid #90A4BF;
border-left:1px solid #90A4BF;
border-bottom:1px solid #90A4BF;
border-right:1px solid #90A4BF;
border-radius:8px;
-moz-border-radius:5px;
-webkit-border-radius:5px;
padding-left:5px;
width:60px;
margin:0 0 0 5px;
}
.fb_share_count_top {width:52px !important;}
.fb_share_count_top, .fb_share_count_inner {-moz-border-radius:3px;-webkit-border-radius:3px;}
.FBConnectButton_Small, .FBConnectButton_RTL_Small {width:52px !important; -moz-border-radius:3px;/*bs-fsmsb*/-webkit-border-radius:3px;}
.FBConnectButton_Small .FBConnectButton_Text {padding:2px 2px 3px !important;-moz-border-radius:3px;-webkit-border-radius:3px;font-size:8px;}
</style>
<div id="Scrolling-fixed">
<div id="floatdiv">
<div id="mbtsidebar">
<table cellpadding="1px" cellspacing="0">
<tr>
<td style="padding:5px 0px 0px 0;">
<span><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2uWQsh2pXK1n5s7oF4u-KWPJe0N6o8duqY2Xnwp58TNM8LqMNIkFtBjTzdZMxyLr2NDOSqbL-Pq-ZKJzXenAgu5YyfS0w-_Zt9PG9k1Hy4_ZELr-Lj_P1vftiemUOc_d6jwlrTvW5Qy4/s1600/thumbs+up.png" /></span>
</td>
</tr>
<tr>
<td style="padding:5px 0px 0px 0;">
<a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical" data-via="Bloggingehow">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
</td>
</tr>
<tr>
<td style="padding:5px 0 2px 0;">
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="" send="false" layout="box_count" show_faces="false" font=""></fb:like>
</td>
</tr>
<tr>
<td style=" padding:5px 0px 0px 0px;">
<script src='http://apis.google.com/js/plusone.js' type='text/javascript'> {lang: 'en-US'} </script>
<g:plusone size="Tall" expr:href="data:post.url">
</g:plusone></td>
</tr>
<tr>
<td style="padding:2px 0px 0px 0;">
<p style=" line-height:0px; font-size:8px; font-weight:bold; text-align:center"><a style="color:#D3D3D3;" href="http://www.bloggingehow.com">widgets</a></p>
</td>
</tr>
</table>
</div>
</div></div>
To restrict the widget only on Post pages of your Blogger blog, you may like to read:
Show/Restrict Blogger Widget On Post/Home/Specific URL Pages Only Once done, save your widget. Congrats! You just made a social sharing widget that attracts high shares. Leave out your comments for any further queries. You may want checkout some of the following widgets that we previously shared:
Tidak ada komentar:
Posting Komentar