How to add social media buttons in web site or blog

Now a days social media is one the best way to growing the audience and make our web site or blog to more popular so for the making  of the audience we can add the social media buttons in our web site or blog


For Facebook:-
 This Script and HTML code, we can put anywhere in our web site

<div id="fb-root"></div>
<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_GB/sdk.js#xfbml=1&version=v2.0";
        fjs.parentNode.insertBefore(js, fjs);
    }
(document, 'script', 'facebook-jssdk'));
</script

<div class="fb-like" data-href=" your webpage-url " data-layout="button_count" data-action="like" data-show-faces="false" data-share="true"></div>


For Twitter

This Script and HTML code , we can put anywhere in our web site

<script>
window.twttr=(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],t=window.twttr||{};if(d.getElementById(id))return;js=d.createElement(s);js.
</script>


<a class="twittersharebutton" href="https://twitter.com/share"
dataurl=" your webpage-url">
</a>


For Google +

This Script and HTML code , we can put anywhere in our web site

<script src="https://apis.google.com/js/platform.js" async defer></script>

<div class="g-plus" data-action="share" data-annotation="bubble" data-href=" your webpage-url "></div>


For Linkdin

This Script and HTML code , we can put anywhere in our web site

<script src="//platform.linkedin.com/in.js" type="text/javascript"> lang: en_US</script>
 
<script type="IN/Share" data-url=" your webpage-url " data-counter="right"></script>

                                                                                             
How to add social media buttons in web site or blog How to add social media buttons in web site or blog Reviewed by NEERAJ SRIVASTAVA on 11:32:00 AM Rating: 5

No comments:

Powered by Blogger.