=>Social Media Floating Bar with share buttons:
- Log-in to your blogger dashboard.
- Goto template>backup, CREATE A BACKUP FILE OF YOUR TEMPLATE.
- Now click EDIT html
4. Inside the “HTML EDITOR”, Press CTRL+F and find </body> tag.
5. Copy & paste the following code just above </body> tag.
____________________________________________________________
!-- Social Media Floating Bar With Pinterest & Other Sharing Buttons CSS Styling Starts-->
<b:if cond='data:blog.pageType == "item"'>
<b:if cond='data:blog.pageType != "static_page"'>
<style>
.mbt_social_floating
{
position:fixed;
bottom:10%;
margin-left:-70px;
float:left;
background-color:#f7f7f7;
width:60px;
padding: 5px 0 10px 0px;
border-top:1px solid #ddd;
border-left:1px solid #ddd;
border-bottom:1px solid #ddd;
z-index:9999px !important;
border-radius:5px;
-moz-border-radius:5px;
-webkit-border-radius:5px;
}
.mbt_social_floating .mbt_sidebar_social_button
{
margin-bottom:5px;
float:none;
height:auto;
width:60px;
}
.mbt_social_floating .st_twitter_vcount, .mbt_social_floating.st_plusone_vcount, .st_email
{
margin-left:5px;
}
.mbt_social_floating .st_fblike_vcount
{
margin-left:5px;
}
.mbt_social_floating .stButton_gradient
{
background:none !important;
height:21px !important;
padding-left:0 !important;
}
.mbt_social_floating .chicklets, .mbt_social_floating .stMainServices
{
background:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHdlAlK4rRkqSA-RU2He8FySUGh3hVPc06BCXr3dPrz3a0uepHjRiHjzZRPYstMZglL73CaDOn3K_61mmZ_RwTruG5vFkxwxfrLS7RTqsErtvedoJ0k46uYOiw0ezhdxzBQbewqobpc5Kn/s400/gc_social_sprite.gif') no-repeat !important;
height:19px !important;
width:45px !important;
padding:0 !important;
}
.st_email .chicklets
{
background-position:0 -77px !important;
background-image:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHdlAlK4rRkqSA-RU2He8FySUGh3hVPc06BCXr3dPrz3a0uepHjRiHjzZRPYstMZglL73CaDOn3K_61mmZ_RwTruG5vFkxwxfrLS7RTqsErtvedoJ0k46uYOiw0ezhdxzBQbewqobpc5Kn/s400/gc_social_sprite.gif') !important;
}
.mbt_social_floating .st_twitter_vcount .st-twitter-counter
{
background-position:0 -58px !important;
}
.mbt_social_floating .stButton_gradient
{
border:none !important;
}
.mbt_social_floating .stBubble_count
{
width:44px !important;
font-size: 15px !important;
font-weight: normal !important;
padding-top:7px !important;
height:23px !important;
background:none !important;
}
.mbt_social_floating .st_twitter_vcount .stBubble_count
{
color:#00a6df;
background-color:#f8fbfc !important;
}
.st_fblike_vcount
{
margin-bottom: 0px;
display: block;
}
.st_twitter_vcount
{
margin-bottom: 3px;
display: block;
}
.st_email
{
margin-bottom: 5px; margin-top: 3px;
display: block;
}
.mbt_social_floating .stBubble
{
background-position: 21px 31px !important;
height:35px !important;
}
.mbt_social_floating .st_pinterest_vcount
{
margin-left:5px;
}
.mbt_social_floating .st_pinterest_vcount .st-pinterest-counter
{
background-position:0 -19px !important;
}
.mbt_social_floating .st_pinterest_vcount .stBubble_count
{
color:#FF0505;
background-color:#fbf8f8 !important;
}
.mbt_social_floating .st_pinterest_vcount .stBubble
{
background-image:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifgR49DB5mN19ZqSVrNHIjOuosvjWsniAIqzSggRu7STxwkdXGxWrpb9hqp3Yt8r8uJ2FPMAXVfW7I9RApqnD_WVKGzn4C9yQzFDJ4tUUL5R-DHzYj107e1_OFBbfhgs5FGaHQM4hvH_9H/s400/bubble_arrow_pinterest.png') !important;
}
.st_pinterest_vcount
{
margin-bottom: 0px;
display: block;
}
</style>
<!-- Social Media Floating Bar With Pinterest & Other Sharing Buttons CSS Styling Ends -->
<div class='mbt_social_floating'>
<script type='text/javascript'>var switchTo5x=true;</script>
<script src='http://w.sharethis.com/button/buttons.js' type='text/javascript'/>
<script type='text/javascript'>stLight.options({onhover:false});</script>
<!-- Facebook Button -->
<div style='margin:0px 0 0px 10px;'>
<div id='fb-root'/>
<script src='http://connect.facebook.net/en_US/all.js#xfbml=1'/>
<fb:like font='' href='' layout='box_count' send='false' show_faces='false'/>
</div>
<!-- Twiiter Button -->
<span class='st_twitter_vcount' displaytext='' st_via='taimurahmed5b'/>
<!-- Pinterest Button -->
<span class='st_pinterest_vcount' displaytext=''/>
<div style='margin:0px 0 0 5px;'>
<!-- G+ Button -->
<span class='st_plusone_vcount' displaytext=''/>
</div>
<!-- Share This Button -->
<div class='addthis_toolbox addthis_default_style ' style='margin:5px 0px 5px 8px;'>
<a class='addthis_counter'/>
</div>
<script src='http://s7.addthis.com/js/250/addthis_widget.js' type='text/javascript'/>
<script type='text/javascript'>
var addthis_config = { ui_cobrand: "My Tutorials Cafe",ui_header_color: "#ffffff", ui_header_background: "#0080FF"
}
</script>
<!-- Email Button -->
<span class='st_email' displaytext=''/>
<p style=' line-height:0px; font-size:10px; font-weight:bold; text-align:center;'>
<a href='' style='color:#CAC8C8;'/></p>
</div>
</b:if>
</b:if>
<b:if cond='data:blog.pageType == "item"'>
<b:if cond='data:blog.pageType != "static_page"'>
<style>
.mbt_social_floating
{
position:fixed;
bottom:10%;
margin-left:-70px;
float:left;
background-color:#f7f7f7;
width:60px;
padding: 5px 0 10px 0px;
border-top:1px solid #ddd;
border-left:1px solid #ddd;
border-bottom:1px solid #ddd;
z-index:9999px !important;
border-radius:5px;
-moz-border-radius:5px;
-webkit-border-radius:5px;
}
.mbt_social_floating .mbt_sidebar_social_button
{
margin-bottom:5px;
float:none;
height:auto;
width:60px;
}
.mbt_social_floating .st_twitter_vcount, .mbt_social_floating.st_plusone_vcount, .st_email
{
margin-left:5px;
}
.mbt_social_floating .st_fblike_vcount
{
margin-left:5px;
}
.mbt_social_floating .stButton_gradient
{
background:none !important;
height:21px !important;
padding-left:0 !important;
}
.mbt_social_floating .chicklets, .mbt_social_floating .stMainServices
{
background:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHdlAlK4rRkqSA-RU2He8FySUGh3hVPc06BCXr3dPrz3a0uepHjRiHjzZRPYstMZglL73CaDOn3K_61mmZ_RwTruG5vFkxwxfrLS7RTqsErtvedoJ0k46uYOiw0ezhdxzBQbewqobpc5Kn/s400/gc_social_sprite.gif') no-repeat !important;
height:19px !important;
width:45px !important;
padding:0 !important;
}
.st_email .chicklets
{
background-position:0 -77px !important;
background-image:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHdlAlK4rRkqSA-RU2He8FySUGh3hVPc06BCXr3dPrz3a0uepHjRiHjzZRPYstMZglL73CaDOn3K_61mmZ_RwTruG5vFkxwxfrLS7RTqsErtvedoJ0k46uYOiw0ezhdxzBQbewqobpc5Kn/s400/gc_social_sprite.gif') !important;
}
.mbt_social_floating .st_twitter_vcount .st-twitter-counter
{
background-position:0 -58px !important;
}
.mbt_social_floating .stButton_gradient
{
border:none !important;
}
.mbt_social_floating .stBubble_count
{
width:44px !important;
font-size: 15px !important;
font-weight: normal !important;
padding-top:7px !important;
height:23px !important;
background:none !important;
}
.mbt_social_floating .st_twitter_vcount .stBubble_count
{
color:#00a6df;
background-color:#f8fbfc !important;
}
.st_fblike_vcount
{
margin-bottom: 0px;
display: block;
}
.st_twitter_vcount
{
margin-bottom: 3px;
display: block;
}
.st_email
{
margin-bottom: 5px; margin-top: 3px;
display: block;
}
.mbt_social_floating .stBubble
{
background-position: 21px 31px !important;
height:35px !important;
}
.mbt_social_floating .st_pinterest_vcount
{
margin-left:5px;
}
.mbt_social_floating .st_pinterest_vcount .st-pinterest-counter
{
background-position:0 -19px !important;
}
.mbt_social_floating .st_pinterest_vcount .stBubble_count
{
color:#FF0505;
background-color:#fbf8f8 !important;
}
.mbt_social_floating .st_pinterest_vcount .stBubble
{
background-image:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEifgR49DB5mN19ZqSVrNHIjOuosvjWsniAIqzSggRu7STxwkdXGxWrpb9hqp3Yt8r8uJ2FPMAXVfW7I9RApqnD_WVKGzn4C9yQzFDJ4tUUL5R-DHzYj107e1_OFBbfhgs5FGaHQM4hvH_9H/s400/bubble_arrow_pinterest.png') !important;
}
.st_pinterest_vcount
{
margin-bottom: 0px;
display: block;
}
</style>
<!-- Social Media Floating Bar With Pinterest & Other Sharing Buttons CSS Styling Ends -->
<div class='mbt_social_floating'>
<script type='text/javascript'>var switchTo5x=true;</script>
<script src='http://w.sharethis.com/button/buttons.js' type='text/javascript'/>
<script type='text/javascript'>stLight.options({onhover:false});</script>
<!-- Facebook Button -->
<div style='margin:0px 0 0px 10px;'>
<div id='fb-root'/>
<script src='http://connect.facebook.net/en_US/all.js#xfbml=1'/>
<fb:like font='' href='' layout='box_count' send='false' show_faces='false'/>
</div>
<!-- Twiiter Button -->
<span class='st_twitter_vcount' displaytext='' st_via='taimurahmed5b'/>
<!-- Pinterest Button -->
<span class='st_pinterest_vcount' displaytext=''/>
<div style='margin:0px 0 0 5px;'>
<!-- G+ Button -->
<span class='st_plusone_vcount' displaytext=''/>
</div>
<!-- Share This Button -->
<div class='addthis_toolbox addthis_default_style ' style='margin:5px 0px 5px 8px;'>
<a class='addthis_counter'/>
</div>
<script src='http://s7.addthis.com/js/250/addthis_widget.js' type='text/javascript'/>
<script type='text/javascript'>
var addthis_config = { ui_cobrand: "My Tutorials Cafe",ui_header_color: "#ffffff", ui_header_background: "#0080FF"
}
</script>
<!-- Email Button -->
<span class='st_email' displaytext=''/>
<p style=' line-height:0px; font-size:10px; font-weight:bold; text-align:center;'>
<a href='' style='color:#CAC8C8;'/></p>
</div>
</b:if>
</b:if>
____________________________________________________________
6. Click “Save Template”.
=>Some Important instructions:
1. This widget works at different places in different templates, so if the above code doesn't work before </body> tag, then find:
<b:includable id='post' var='post'> tag, Click ► to expand the code.
Just below <b:includable id='post' var='post'> tag, paste the widget code.
2. If in case Facebook Like Button doesn't work, then add the following code before</body> tag.
____________________________________________________________
<div id='fb-root'/>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
____________________________________________________________
3. Replace “mytutorialscafe” with your own Twitter username.
4. By default, this floating bar will drift at the left side of your blog. To change it to the right or other settings, adjust it in the highlighted "Yellow Code" above. i.e.
____________________________________________________________
position:fixed;
bottom:10%;
margin-left:-70px;
float:left;
background-color:#f7f7f7;.
bottom:10%;
margin-left:-70px;
float:left;
background-color:#f7f7f7;.
____________________________________________________________
Thats it
Hope this new wedged gives your blog new colors as it is one of the best floating bar uptil now. If you need any help, please feel free to ask. Don’t forget to spread this knowledge with your friends and subscribe at our blog for more updates like this and also leave your comments below. Peace and blessings everyone.! :)
0 comments:
Post a Comment