How To Add Facebook Like-Send, Tweet, Google + Button For Blog & Website

Socialize: 

Even though Facebook Like & Send, Twitter Tweet and Google +1 social sharing buttons can be added easily enough by following their respective tutorials, aligning them perfectly side by side is a bit tricky. Several readers were having trouble with the alignment and contacted me for help.
Rather than attempting to explain how to align your existing buttons, I think it’s easier to just give you a new set of codes for the buttons with the alignment built in. Simply remove your existing buttons and add the new code using the following steps:

Go to Design > Edit HTML (New interface: Template > Edit HTML).

Back up your template.
Tick the Expand Widget Templates checkbox on top right of the code window.

Find </head> And Paste The Below Code Just Above It.


<script type="text/javascript" src="http://apis.google.com/js/plusone.js"> {lang: 'en-US'} </script>

Next, look for <data:post.body/> tag and paste the following code immediately above it:



<!-- Scripts Start -->
<b:if cond='data:post.isFirstPost'>
<!-- Facebook -->
<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 = &quot;http://connect.facebook.net/en_US/all.js#xfbml=1&quot;;
fjs.parentNode.insertBefore(js, fjs);
}(document, &#39;script&#39;, &#39;facebook-jssdk&#39;));
</script>
<!-- Google +1 -->

<!-- Twitter -->
<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=&quot;//platform.twitter.com/widgets.js&quot;;fjs.parentNode.insertBefore(js,fjs);}}(document,&quot;script&quot;,&quot;twitter-wjs&quot;);</script>
</b:if>
<!-- Scripts End -->
<!-- Horizontal social buttons Start -->
<b:if cond='data:blog.pageType != &quot;static_page&quot;'>
<div class='horizontal-social-buttons' style='padding:5px 0 5px;'>
<!-- Twitter -->
<div style='float:left;'>
<a class='twitter-share-button' data-count='horizontal' data-lang='en' data-related='' data-via='' expr:data-text='data:post.title' expr:data-url='data:post.url' href='https://twitter.com/share'>Tweet</a>
</div>
<!-- Google +1 -->
<div style='float:left'>
<g:plusone size="medium" expr:href="data:post.canonicalUrl"/>
</div>
<!-- Facebook Like+Send -->
<div style='float:left;'>
<fb:like colorscheme='light' expr:href='data:post.url' font='' layout='button_count' send='true' show_faces='false'/>
</div>
</div>
</b:if>
<div style='clear: both;'/>
<!-- Horizontal social buttons End -->

Button positioning :
To position the buttons at the bottom of post, place the code below (instead of above) <data:post.body/>.
Preview before saving.


    You may also like...

  • How To Remove The Blogger NavBar In Blog

    How To Remove The Blogger NavBar In Blog

    Just In Easy Steps.....................1- Log in to blogger2- On your Dashboard, select Layout.…

  • How to Add Signature to Blog Posts In Blogspot

    How to Add Signature to Blog Posts In Blogspot

    You want to add a permanent signature or a picture at the end of each of your blog post, here's…

  • How to Install User Selected CSS on Blog and Website

    How to Install User Selected CSS on Blog and Website

    The beauty and attractiveness of a webpage or website depends upon the themes and skin of that very…

  • How To Add Static Twitter Follow Box With Smooth Jquery Hover Effect In Blog And Website

    How To Add Static Twitter Follow Box With Smooth Jquery Hover Effect In Blog And Website

    Here There are 3 Simple Steps:If you have a twitter account then it is the best animated widget for…

  • How To Add Stylish Border Around Selected Widget Of Blogger?

    How To Add Stylish Border Around Selected Widget Of Blogger?

    Today the question is that "How to make your Blog's Widgets or Gadgets more stylish and awesome by…

  • Auto Image Thumbnail & ReadMore Link For Blogger Post

    Auto Image Thumbnail & ReadMore Link For Blogger Post

    Blogger is a good platform for blogging. It has many different pre built templates for its users.…

  • How To Create An HTML-PHP Working Contact Form For Your Website

    How To Create An HTML-PHP Working Contact Form For Your Website

    You Don't Have Need To Any Contact Form Builder Or Provider.Here Are The Simple & Easy Step To…

No comments:

Post a Comment

About Me

Hi, I am Muhammad Saalim, Co-Founder of EXEIdeas International and CEO of bord4banned. I am here to share my experiences with you and to help those who can help themselves.

Follow Me



Join Our Official FaceBook Group To Stay With Us.

Caution!

All data, codes, articles, tips and tricks etc, posted here are copyright work of MyTutspot.Blogspot, and are protected with DMCA. Any one, found to be thefting any data, will be under LEGAL ACTION.

My Tutspot.Blogspot 2018 All Rights Reserved
Designed by born4banned | A Project of EXEIdeas International