Friday, July 6, 2012

How To Add Cool Social Sharing Widget To Blogger Post

This is also Nice social Bookmark buttons.
This buttons helps you to get more visitors by
sharing your post.Because it large button Earlier
i posted about How to add "Add This" Social
Bookmark Buttons
. This is more attractive than it.
In this tutorial also helps you to add this social
bookmark button to below post title and end of the post.

/sharing-widget

1. Log in to blogger account and Go to Design >> Edit HTML
    (make sure backup your template first)

3. Add check mark in Expand Widget Templates. 

4. Find this tag by using Ctrl+F   <div class='post-footer-line post-footer-line-1'/>

5. Paste below code before <div class='post-footer-line post-footer-line-1'/> code

<b:if cond="data:blog.pageType == &quot;item&quot;">
<style>
.promote_post_bg {
    height: 103px;
    background: url(http://2.bp.blogspot.com/-Nq-msISGJ2w/T_XXNbKwE3I/AAAAAAAAB1g/cfD9cj-Vd44/s1600/sharing-widget.png) 0 -7px no-repeat;
    width: 500px;
    margin-left: 65px;}
.promote_twitter {
    width: 130px;
    height: 38px;
    float: left;
    margin: 0 39px 0 0;
    padding: 65px 0 0 13px;
    text-align: center;} 
.promote_facebook {
    width: 115px;
    height: 40px;
    float: left;
    margin: 0 39px 0 0;
    padding: 63px 0 0 28px;
    text-align: center;}
 .promote_google {
    width: 65px;
    height: 40px;
    float: left;
    margin: 0 39px 0 0;
    padding: 65px 0 0 28px;
    text-align: center;
}
</style>
</b:if>
<div class="promote_post_bg">
<div class="promote_twitter">
<a class="twitter-share-button" data-via="helperblogger" href="https://twitter.com/share">Tweet</a>
<script>
                !
                function (d, s, id) {
                    var js, fjs = d.getElementsByTagName(s)[0];
                    if (!d.getElementById(id)) {
                        js = d.createElement(s);
                        js.id = id;
                        js.src = "//platform.twitter.com/widgets.js";
                        fjs.parentNode.insertBefore(js, fjs);
                    }
                }(document, "script", "twitter-wjs");
            
</script></div>
<div class="promote_facebook">
<fb:like action="like" colorscheme="light" expr:href="data:post.canonicalUrl" font="verdana" layout="button_count" send="false" show_faces="false"></fb:like>
<div>
<b:if cond="data:post.isFirstPost">
<script>
                        (function (d) {
                            var js, id = 'facebook-jssdk';
                            if (d.getElementById(id)) {
                                return;
                            }
                            js = d.createElement('script');
                            js.id = id;
                            js.async = true;
                            js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
                            d.getElementsByTagName('head')[0].appendChild(js);
                        }(document));
                    
</script>
</b:if></div>
</div>
<div class="promote_google">
<g:plusone annotation="none" size="medium"></g:plusone>
<script type="text/javascript">
                (function () {
                    var po = document.createElement('script');
                    po.type = 'text/javascript';
                    po.async = true;
                    po.src = 'https://apis.google.com/js/plusone.js';
                    var s = document.getElementsByTagName('script')[0];
                    s.parentNode.insertBefore(po, s);
                })();
            
</script></div>
</div>



6. Now save your Template. You are done.

Demo below







5 comments:

  1. nice blog, very usefull,.give me your advice for my blog on
    http://javatourtraveling.blogspot.com
    i already do the same like you do,.please check your google connect:)

    ReplyDelete
  2. thanks a lot :)

    I just wanna know how can I make it appear in the center ?

    ReplyDelete
  3. okay thanks I knew how to make it in the center !

    but now I have a problem .. this is a pic of the problem :

    http://www10.0zz0.com/2013/01/28/00/945172657.jpg

    how can I fix it ? and thanks guys :)

    ReplyDelete