.
Mashable is one of the leading social media when it comes to technology out there with millions of reader and subscriber. Their web designers are always a step forward when it comes to their blog's user experience.
Mashable Mashshare social sharing widget is one of the best widget that I have seen so far in my blogging history. This social media sharing widget includes Facebook, Twitter, Google+, LinkedIn, StumbleUpon and Pinterest. This widget becomes unique because it has a counter for total shares and has expanding effect.
This widget uses Jquery to create an Expanding effect on the button and Css for the style, and of course Html for the structure of the widget.You can follow the steps below to add this Mashable Mashshare social sharing widget to your own blogger blog today!
Instructions To Follow:
Step No.1
- Blogger Dashboard?Your Blog
- Template ? Edit HTML Tab
- Find <b:skin> By Pressing (ctrl+f)
- Copy the following code and paste it before <b:skin>
Code:
<link href='http://fonts.googleapis.com/css?family=Raleway%3A400%2C800%2C700&ver=1.0' id='googlewebfont-css' media='all' rel='stylesheet' type='text/css'/>
Step No.2
- Find ]]></b:skin> By Pressing (ctrl+f) anywhere inside your template.
- Copy the following code and paste it before ]]></b:skin>
CSS Code:
#sharrrrre{
float:left;
margin: -10px 5px 0 0;
padding: 15px 15px 15px 0;
background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4f3V1IozUQOGW7nqOsCz4xYYmKPJau1HLqO3Vg7uXYZWOP_1SAiTx5vG1jPIekVrlStwX-4g18UpHCihA1FVTBoqISL3xdf5MWg52TVY4uEqtZd8VURcF3WIddYlNV-m4JuNSAkuBV28/s1600/diagonal.png) no-repeat 100% 50%;
);
}
.sharrre .count {
color:#7fc04c;
font-weight: bold;
display:block;
font-size:50px;
position:relative;
text-align:center;
text-decoration:none;
width:100px;
line-height: 40px;
padding: 0;
}
.sharrre .share {
color:#666;
display:block;
font-size:10px;
height:10px;
text-align:center;
text-decoration:none;
width:100px;
padding: 0;
}
@import url(http://fonts.googleapis.com/css?family=Raleway:600);
.social-div a{
text-decoration:none!important;
display:inline-block;
}
.social-div a img{
display:inline-block;
width: auto;
height: auto;
margin: 0 8px 0 -5px;
vertical-align:middle
}
#socialshare{
display:inline-block;
vertical-align: middle;
text-align: center;
color:#ffffff;
font-size:16px;
padding:14px 20px 15px 20px;
text-decoration:none;
font-family:Raleway;
margin-right:5px;
-webkit-font-smoothing:antialiased;
-webkit-text-rendering:optimizeLegibility;
}
#socialshare:active {
padding: 15px 20px 15px 20px;
margin-bottom: -1px;
}
#socialshare:hover{
opacity: 0.9;
}
.share-toggle{
position:relative;
display:inline-block;
cursor:pointer;
vertical-align:middle;
text-align:center;
color:#fff;
}
.share-toggle a{
color:#fff;
text-decoration:none;
}
.social-div{
vertical-align:middle;
}
#expand-social{
display:inline-block;
position:relative;
vertical-align:middle;
height: 53px;
}
#social-expand{
display:inline-block;
vertical-align:middle;
position:relative;
top:0px;
left:0px;
}
.expand {
box-shadow: 0px 3px 0px 0px #c5bebe;
background:#cdcccc;
position: relative;
width: 40px;
height: 40px;
line-height: 40px;
font-size: 200%;
}
.expand:active {
box-shadow: 0px 1px 0px 0px #c5bebe;
height: 41px;
margin-bottom:-1px;
}
.expand:hover {
opacity:0.9;
}
.expand-minus{
display:none;
}
.socialshare2 {
width:50px;
height:50px;
display:inline-block;
}
.socialshare2:active {
height:51px;
margin-bottom:-1px;
}
.socialshare2:hover {
opacity:0.9;
}
.ubhfacebook{
background:#507bbf;
box-shadow: 0px 3px 0px 0px #4671b5;
}
.ubhfacebook:active{
box-shadow: 0px 1px 0px 0px #4671b5;
}
.ubhtwitter{
background:#63cef2;
box-shadow: 0px 3px 0px 0px #57c4e9;
}
.ubhtwitter:active{
box-shadow: 0px 1px 0px 0px #57c4e9;
}
.ubhgoogle-plus{
box-shadow: 0px 3px 0px 0px #43454c;
background:#4d4f54 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6cGrJGpzeQcbHQAza9wQsKeJKFRt6eFhEdX3Dy2RR9Kz4Ogf6NVupKdqcduKaZ0DGcZJ8r_cfRRl-_WJZcAyzpJFtSd3slFVP9sOuDXWDIV6Zalquc0xDSTSvPaDRqAnGycjX6ly8L1w/s20/g+.png) no-repeat center;
}
.ubhgoogle-plus:active{
box-shadow: 0px 1px 0px 0px #43454c;
}
.ubhlinkedin {
box-shadow: 0px 3px 0px 0px #12a4db;
background:#1aace3 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvtX6xUeP39vVGbU1UkxJyRbC_4OWVIzmfS-Z6bpgJYIIIkyR8U2K419uoyXvcNdSjgulNWGzQISyRGwdAcNPZyZ41PtryAXdRrJweNorOy2jdV2ZX-E-xvA1VPDV1rrotvzlxFL8bKa4/s20/in.png) no-repeat center;
}
.ubhlinkedin:active{
box-shadow: 0px 1px 0px 0px #12a4db;
}
.ubhpinterest{
box-shadow: 0px 3px 0px 0px #e85756;
background:#f16261 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLSZOMEdm8wPO-Tmled9UMpVm5ujTF_-e_z9ExBA8V189jLqAxGYTjmzD7SvCJjzqIsXi1zGconcN1J5HWeCS7PmM6E2Dy07ZTlGuPQTZffGBBf5cMp0-tPoLqNh4RzyyY2iqwVHs6bY0/s20/pinterest.png) no-repeat center;
}
.ubhpinterest:active{
box-shadow: 0px 1px 0px 0px #e85756;
}
.ubhstumbleupon{
box-shadow: 0px 3px 0px 0px #f5a635;
background:#fdaf40 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjIpPOG51bbNA-EsWtIvhyphenhyphenF_AjYw0NT70Zwow-wGqP57EyK8caNyCyqGohGzxF8V0e-xmygx3I-tzliTBjoll1TpoRic2VyIx7D5Va5Ik0-o7Y8S_QlFSZW6k90Qsw3cOKxjCBoS2pOhBY/s20/stumble.png) no-repeat center;
}
.ubhstumbleupon:active{
box-shadow: 0px 1px 0px 0px #f5a635;
}
Step No.3
- Find once again such tag <div class='post-footer-line post-footer-line-1'>
- Copy the following code and paste it before <div class='post-footer-line post-footer-line-1'>
Code:
<b:if cond='data:blog.pageType == "item"'>
<div class='social-div'>
<div id='sharrrrre'>
<div data-title='SHARES' id='shareme'/>
</div>
<div style='display: inline-block; margin-bottom: 20px;'>
<a class='ubhfacebook' expr:href='"http://www.facebook.com/sharer.php?u=" + data:post.url + "&title="+ data:post.title' id='socialshare' onclick='window.open(this.href, 'windowName', 'width=550, height=600, left=24, top=24, scrollbars, resizable'); return false;' rel='nofollow' target='_blank'>
<img src='https://googledrive.com/host/0B8D3MQmcZTyvN1kzV3lfS2h6NW8'/>
Share on Facebook
</a>
<a class='ubhtwitter' expr:href='"http://twitter.com/share?url=" + data:post.url + "&title=" + data:post.title' id='socialshare' onclick='window.open(this.href, 'windowName', 'width=550, height=600, left=24, top=24, scrollbars, resizable'); return false;' rel='nofollow' target='_blank'>
<img src='https://googledrive.com/host/0B8D3MQmcZTyvVXp2Qm5OSzRMUmM'/>
Share on Twitter
</a>
</div>
<div id='expand-social' style='display:none;'>
<a class='socialshare2 ubhgoogle-plus' data-title='Google+' expr:href='"https://plus.google.com/u/0/share?url=" + data:post.url' onclick='window.open(this.href, 'windowName', 'width=550, height=600, left=24, top=24, scrollbars, resizable'); return false;' rel='nofollow' target='_blank'>
</a>
<a class='socialshare2 ubhlinkedin' data-title='Linkedin' expr:href='"http://www.linkedin.com/shareArticle?mini=true&url=" + data:post.url + "&title=" + data:post.title + "&source=" + data:blog.title' onclick='window.open(this.href, 'windowName', 'width=550, height=600, left=24, top=24, scrollbars, resizable'); return false;' target='_blank'>
</a>
<a class='socialshare2 ubhstumbleupon' data-title='Stumble-Upon' expr:href='"http://www.stumbleupon.com/submit?url=" + data:post.url + "&title=" + data:post.title' onclick='window.open(this.href, 'windowName', 'width=550, height=600, left=24, top=24, scrollbars, resizable'); return false;' rel='nofollow' target='_blank'>
</a>
<a class='socialshare2 ubhpinterest' data-title='Pin it' expr:href='"http://pinterest.com/pin/create/button/?url=" + data:post.url + "&media=" + data:post.thumbnailUrl + "&description=" + data:post.snippet' onclick='window.open(this.href, 'windowName', 'width=550, height=600, left=24, top=24, scrollbars, resizable'); return false;' rel='nofollow' target='_blank'>
</a>
</div>
<div class='share-toggle'>
<div id='social-expand' onClick='toggle('expand-social');'>
<div class='expand-plus expand'>+</div>
<div class='expand-minus expand'>-</div>
</div>
</div>
</div>
</b:if>
You have done,but remain another :-D
Step No.4
- Find once again such tag </body> by pressing (ctrl+f)
- Copy the following code and paste it before </body>
HTML Code:
<script src='http://code.jquery.com/jquery-1.7.min.js'/>
<script src='https://c8e27177358b76154f67a92cab4608cc54cd08c0.googledrive.com/host/0B72-8N3aLQVmai0zWDl1U1AxeTQ'/>
<script type='text/javascript'>
$(function(){
$('#shareme').sharrre({
share: {
googlePlus: true,
facebook: true,
twitter: true,
stumbleupon: true,
linkedin: true,
pinterest: true
},
enableTracking: true,
enableHover: false,
});
});
</script>
<script type='text/javascript'>
function toggle(d)
{
$("#" + d).animate({width:'toggle'},400);
}
$(document).ready(function(){
$("#social-expand").click(function(){
$(".expand-plus").toggle();
$(".expand-minus").toggle();
});
});
</script>
Congratulation:You have successfully installed this widget to your blog!
Customization:
You might not see <div class='post-footer-line post-footer-line-1'> in your template so please look for any similar code, and also you can paste the code anywhere you want the widget to be shown.
Hope you like it. Express your thoughts by leaving a comment. Until next time, Thank you!
Let me know if you're facing any problems installing this widget.
Leave A Comment:
0 comments: