Procedure for adding Sharing buttons:
1.Go to Blogger Dashboard Home>Template>Edit Template.2.Click any where in Template section and press Ctrl+F to find the following code:
<b:if cond='data:post.hasJumpLink'>
3.After Find this code add the following code just above it.
<b:if cond='data:blog.pageType == "item"'> <div class='sharelordhtml'> <center><div class='headinglordhtml'>Like the Post? Do share with your Friends.</div> <ul class='social' id='cssanimation'> <li class='facebook'> <a expr:href='"http://www.facebook.com/share.php?v=4&src=bm&u=" + data:post.url + "&t=" + data:post.title ' onclick='window.open(this.href,'sharer','toolbar=0,status=0,width=626,height=436'); return false;' rel='nofollow'><strong>Facebook</strong></a> </li> <li class='twitter'> <a expr:href='"http://twitter.com/home?status=" + data:post.title + " -- " + data:post.url ' rel='nofollow' target='_blank'><strong>Twitter</strong></a> </li> <li class='googleplus'> <a expr:href='"https://plusone.google.com/_/+1/confirm?hl=en&url=" + data:post.url' onclick='window.open(this.href,'sharer','toolbar=0,status=0,width=626,height=436'); return false;' rel='nofollow' target='_blank'><strong>Google+</strong></a> </li> <li class='pinterest'> <a href='javascript:void((function()%7Bvar%20e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','http://assets.pinterest.com/js/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)%7D)());' rel='nofollow' target='_blank'><strong>Pinterest</strong></a> </li> <li class='stumbleupon'> <a expr:href='"http://www.stumbleupon.com/submit?url=" + data:post.url + "&title=" + data:post.title ' rel='nofollow' target='_blank'><strong>StumbleUpon</strong></a> </li> <li class='delicious'> <a expr:href='"http://delicious.com/post?url=" + data:post.url + "&title=" + data:post.title ' rel='nofollow' target='_blank'><strong>Delicious</strong></a> </li> <li class='linkedin'> <a expr:href='"http://www.linkedin.com/shareArticle?mini=true&url=" + data:post.url + "&title=" + data:post.title + "&summary=&source="' rel='nofollow' target='_blank'><strong>LinkedIn</strong></a> </li> <li class='reddit'> <a expr:href='"http://reddit.com/submit?url=" + data:post.url + "&title=" + data:post.title ' rel='nofollow'><strong>Reddit</strong></a> </li> <li class='technorati'> <a expr:href='"http://technorati.com/faves?add=" + data:post.url ' rel='nofollow' target='_blank'><strong>Technorati</strong></a> </li> </ul></center></div> <link href='http://fonts.googleapis.com/css?family=Englebert' rel='stylesheet' type='text/css'/>​ <style> ul.social { list-style:none; display:inline-block; margin:15px auto; } ul.social li { display:inline; float:left; background-repeat:no-repeat; } ul.social li a { display:block; width:50px; height:50px; padding-right:10px; position:relative; text-decoration:none; } ul.social li a strong { font-weight:400; position:absolute; left:20px; top:-1px; color:#fff; z-index:9999; text-shadow:1px 1px 0 rgba(0,0,0,0.75); background-color:rgba(0,0,0,0.7); -moz-border-radius:3px; -moz-box-shadow:0 0 5px rgba(0,0,0,0.5); -webkit-border-radius:3px; -webkit-box-shadow:0 0 5px rgba(0,0,0,0.5); border-radius:3px; box-shadow:0 0 5px rgba(0,0,0,0.5); padding:3px; } ul.social li.facebook { background-image:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgk6QECXAQKRXni8tEtY_BsC1iycza503cHgdeF1OmvPt7VUbOKgnFjVdzz38wDNTxTDyqcY32IstR8ItQH7nVwJVFAdc7RqGT5UtWcOwpvdJ2IdOCdzk1tsQuJnnnZVAzO9VHfDRJ3ZIAO/s0/facebook.png); } ul.social li.twitter { background-image:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbt803Z4uiSthQHzBSYRI6CUfpwAsWZPeLgWQ2WcfoKNuqGspIe9UrR1dI-oO8dZYukcycXMpHywIEurE6eJ8KSjaYJpZy8DA29OV7BuHLHitfYGE13pYZv_Mr3ouklPcp93AZlGQZJvfE/s0/twitter.png); } ul.social li.googleplus { background-image:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFerMYCeYRhE01iumFuyZhkb_dL8aDvl12v48QSf4e46Kt3CMOJjBXQIQZXAyW6L-4S2lfe6SoGB7I0C3dT5lWgX0VYVZsz_Ki4Aiay7qWEvnQCaAokSPU1LZSKc1_zxjDMSqAS8YDl-AH/s0/google%252525252b.png); } ul li.pinterest { background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPuQe_-iVws3JWwrJOzfoWt9MfJUN4bXkDHbXrakvsc-aWERUi4jc5RTCpG7Ho9Yw7VkmHZ3-VTEG4Rps-54-MndHWlPwmfxMd75i0kzds_S2nca6Wn8m2CwmRwT4tcRYa1rdUkjZvgH7a/s0/pinterest.png); } ul.social li.stumbleupon { background-image:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkqr83r0dHas0_o7hHr0Nrur_YUFK8c0oI7mkY1emSJCJHWjwyb2H3Af5zDVqGlAVHF1wkO8Xkd2jWIUS1Xyh2c-6yFRqze3xJ96JRNBocROZW5zxnqZKMy542-llCfPmMnwpDbbIk4wMk/s0/stumbleupon.png); } ul.social li.delicious { background-image:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDuvI2GeFYXegYYMpZrRUr_0RzyExg2stVj1DXDQF4mgsCVqZqBdOnwd5hPv3PoLyc2hjzIe-73fhu_3Tn4koP8nY7nA1HpMK6L3EA3cEC_cQrIWii0lwxALbW0sxT1GIz7AhGnEGtnMKB/s0/delicious.png); } ul.social li.linkedin { background-image:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWdgDw8Luu15hfFOepUR-2GEWRXXuPlf4uV08GAzjRP7hv5_t6EBo1rZ302ipKCfge56JpOFP_lLXvwpt5g-_wa0F5nuQisNxL_T6uSZm2SwoLaxyT78kzkvDFwy4OoMP4-3kI-B5lnFEr/s0/linkedin.png); } ul.social li.reddit { background-image:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNNDJNzyiFGVHVfmCLY-EYIvDQzpWPjZscWdRjf1sw5rliDcLU9BM5Ex8ljtoHm3Hox05cPAmM2oMnVbWAEqP9bblDhaxtNEl7TNIDOlBdVzZPwXSAL65bAwAbBWEhd6XkOSRrH7EHS8l_/s0/reddit.png); } ul.social li.technorati { background-image:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwLNguZwGxmpYqUTn4UyQP_LJrhO6iiP6cCG21DLZXHQO2-9y8Pebpd56UvGofcuHXIDTtQqDST_EMqiIdHv3_jPWzNUrG-XPMV8PL8kAOk8xw8z604cgcFvRj5co7Men9hS3H7drrboUC/s0/tbi-technorati.png); } #cssanimation:hover li { opacity:0.2; } #cssanimation li { -webkit-transition-property:opacity; -webkit-transition-duration:500ms; -moz-transition-property:opacity; -moz-transition-duration:500ms; } #cssanimation li a strong { opacity:0; -webkit-transition-property:opacity, top; -webkit-transition-duration:300ms; -moz-transition-property:opacity, top; -moz-transition-duration:300ms; } #cssanimation li:hover { opacity:1; } #cssanimation li:hover a strong { opacity:1; top:-10px; } .headinglordhtml{ font-size:25px; font-family: 'Englebert', sans-serif; } .sharelordhtml{ border-top:30px solid #3873CC; padding:16px; -webkit-box-shadow: 0px 7px 9px rgba(50, 50, 50, 0.75); -moz-box-shadow: 0px 7px 9px rgba(50, 50, 50, 0.75); box-shadow: 0px 7px 9px rgba(50, 50, 50, 0.75); transition: background .777s; -webkit-transition: background .777s; -moz-transition:background .777s; -o-transition: background .777s; -ms-transition: background .777s; background:#D9D6FF; } .sharelordhtml:hover { background:white; } ​ </style> </b:if>
4.Now, Save Your Template and enjoy.
No comments:
Post a Comment