Saturday, February 2, 2013

Create Floating Bar For Pinterest & Other Sharing Buttons


In this tutorial, I am sharing with you how to add floating bar comprising on google +1, pinterest, facebook like and other sharing button, this widget was created by applying both CSS and jQuery effect. I have made sure to keep the installation process installation to be easy as possible, it works perfectly well on most browser.

This floating bar will appear at the left hand side and move up and down as readers scroll up and down, it also contains a counters that shows how many times your post have been shared or liked. It was originally created by my blogger tricks and fully customize by me. This will really perform a great roll on spreading/sharing your post which will help you to drag real traffic.

How to Add New Floating Bar With Pinterest & Other Sharing Buttons

  • Login to your blogger dashboard
  • Click on "Design" > "Edit HTML" >
  • Mark/Tick "Expand Widget Template"

(Press Ctrl+F to search the below code)

<b:includable id='post' var='post'> 
  • Paste the code below immediately after/below it.

<b:if cond='data:blog.pageType == &quot;item&quot;'>
<b:if cond='data:blog.pageType != &quot;static_page&quot;'>
<style>
.bt_social_floating{
    position:fixed; bottom:10%; margin-left:-60px; float:left;     width:60px;
    background-color:#f7f7f7;     padding: 5px 0 0px 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;
}
.bt_social_floating .bt_side_social_button{
    margin-bottom:5px;
    float:none;
    height:auto;
    width:60px;
}
.bt_social_floating .st_twitter_vcount, .bt_social_floating.st_plusone_vcount, .st_email{
    margin-left:5px;
}
.bt_social_floating .st_fblike_vcount{
    margin-left:5px;
}
.bt_social_floating .stButton_gradient{
    background:none !important;
    height:21px !important;
    padding-left:0 !important;
}
.bt_social_floating .chicklets, .bt_social_floating .stMainServices {
    background:url(&#39;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKZ1ID1LcYm61JFZveKnHaPXylRqm3kVRzNI4JQiPPmNXdK6QQrVLk264uB7EOp_I3k61shpflLT3TQMAt0raG-ZbphNKx5DgdHnb8PGsmSqLjX2iNfyohCo7q1aPGNYks9fc2c2w8nQum/s400/gc_social_sprite.gif&#39;) no-repeat !important;
    height:19px !important;
    width:45px !important;
    padding:0 !important;
}
.st_email .chicklets{
    background-position:0 -77px !important;
    background-image:url(&#39;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKZ1ID1LcYm61JFZveKnHaPXylRqm3kVRzNI4JQiPPmNXdK6QQrVLk264uB7EOp_I3k61shpflLT3TQMAt0raG-ZbphNKx5DgdHnb8PGsmSqLjX2iNfyohCo7q1aPGNYks9fc2c2w8nQum/s400/gc_social_sprite.gif&#39;) !important;
}
.bt_social_floating .st_twitter_vcount .st-twitter-counter{
    background-position:0 -58px !important;
}
.bt_social_floating  .stButton_gradient{
    border:none !important;
}
.bt_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;
}
.bt_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;
}
.bt_social_floating .stBubble{
    background-position: 21px 31px !important;
    height:35px !important;
}.bt_social_floating .st_pinterest_vcount{
    margin-left:5px;
}
.bt_social_floating .st_pinterest_vcount .st-pinterest-counter{
    background-position:0 -19px !important;
}
.bt_social_floating .st_pinterest_vcount .stBubble_count{
    color:#FF0505;
    background-color:#fbf8f8 !important;
}

.bt_social_floating .st_pinterest_vcount .stBubble{
    background-image:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwp4d8DJO8et8Fv2jghWCisoxytiVuBnxjLNy_38ycctUwvWgOFD0GHgDTJnCGtMbaG3kfp-LY0dU7FyktZy4zb8gxqGuJePR8k2JyPGxaGJKa1UgOkjI0FByHNiSoOlpDDEj7e5eW4BvC/s400/bubble_arrow_pinterest.png') !important;
}


.st_pinterest_vcount{
    margin-bottom: 0px;
    display: block;
}

</style>

<div class='bt_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>
    <span class='st_fblike_vcount' displaytext=''/>
    <span class='st_twitter_vcount' displaytext='' st_via='harikesh409'/>
<span class='st_pinterest_vcount' displaytext=''/>
<div style='margin:0px 0 0 5px;'>
    <span class='st_plusone_vcount' displaytext=''/>
</div>
   
<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: &quot;BLOGGER TRICKS&quot;,
ui_header_color: &quot;#ffffff&quot;,
     ui_header_background: &quot;#0080FF&quot;
}
</script>
<span class='st_email' displaytext=''/>
<p style=' line-height:0px; font-size:10px; font-weight:bold; text-align:center;'><a href='http://blogg-tricks.blogspot.com/2013/02/create-floating-bar-for-pinterest-other.html8;'>Add This</a></p>
</div>
</b:if></b:if>

  • Click "SAVE TEMPLATE"
If you want to customize the position and the background of your widget, you can edit the code highlighted above, and replace 'harikesh409' with your twitter username. This will only display on your post pages.
Hope this help? If you have anything to say of ask please use the comment box below.

In future I will be dropping a lot of tutorials on how you can add more share buttons and fully customize your widget, so for you not to miss any of this tutorials, subscribe to this blog now and take few seconds to share this.

1 comment:

  1. When someone writes an post he/she retains
    the thought of a user in his/her brain that how a user
    can be aware of it. Therefore that's why this article is outstdanding. Thanks!

    my web blog height improvement

    ReplyDelete

Your feedback is always appreciated. We will try to reply to your queries as soon as time allows.

Note:
1. To add HTML CODE in comments then please use our Instant HTML Encoder
2. You can always Test the tutorial on our HTML Editor
3. Please do not spam Spam comments will be deleted immediately upon our review.
4.Click Subscribe by Email to receive Replies