Sunday, 17 March 2013

Cool Social button

Cool Social button

  • Selasa, 12 Februari 2013

  • Social bookmarking gadgets are the easiest ways to boost traffic on your blog and earn more money.Till today we have shared many kind social sharing and bookmarking widgets but this one is little different from all of them because each button has a different background.This button contains a twitter tweet button,facebook like button and google +1 button also the installation of the widget is one step installation you just have to add some piece of code in your template.If you want to see the demo of widget then scroll down,you will find the demo at the bottom of the post,also don't forgot to use them :) Now without waiting anymore let's see how to add it to blogger blog.

    How to Add This Widget To Blogger?


    1. Go to Blogger Dashboard > Template
    2. Take a backup of your template
    3. Click on Edit HTML
    4. Hit Proceed button
    5. Check Expand Widget Template checkbox.
    6. Find below code in your template,

    <div class='post-footer-line post-footer-line-1'/>

    add below piece of code just above it,

    <b:if cond='data:blog.pageType == "item"'>
    <style>
    .promote_post_bg {
        height: 103px;
        background: url(https://lh3.googleusercontent.com/-AK_TNwyWxJw/T8XDa2Q6TpI/AAAAAAAAB04/UCczorSYj0s/s1600/helperblogger.com-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>
        <div class='promote_post_bg'>
            <div class='promote_twitter'>
                <a class='twitter-share-button' data-via='jacobsilitonga' 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 expr:href="data:post.canonicalUrl" layout='button_count' send='false'
                    show_faces='false' font="verdana" action="like" colorscheme="light"></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>
    </b:if>


    Now save your template and you are done.
    It Simple?
    source:http://www.sitonga.com/2013/02/cool-social-button.html

    No comments: