How to Add Simple Post Share Buttons to Blogger

Posted by Lasantha Bandara on February 22nd, 2015 File Under : bookmarks, facebook, google plus, twitter0 Comment

This easy to follow blogger tutorial explains how to add simple and beautiful post share buttons into your blogger blog. You can share your posts on "Facebook", "Twitter", "Google Plus", "Stumbleupon" and "Digg" social networks after adding this buttons into your blog.

Here I am going to add this share buttons below post title in my blogger blog.

First go to "Edit HTML" of your blog and Find ]]></b:skin> tag.

Add below code just above ]]></b:skin> tag:

.btt-socialshare{margin:10px 0}
.btt-socialshareul li{margin:0 10px 0 0 !important;padding:3px 8px!important;list-style:none!important;list-style-type:none;display:inline-block}
.btt-socialshareul li.btt-share-this{padding:3px 8px 3px 0 !important}
.btt-socialshareul li.btt-facebook{background:#3c5b9b!important}
.btt-socialshareul li.btt-twitter{background:#2daae1!important}
.btt-socialshareul li.btt-google{background:#f63e28!important}
.btt-socialshareul li.btt-stumbleupon{background:#eb4924!important}
.btt-socialshareul li.btt-digg{background:#1b5891!important;margin:0!important}
.btt-socialshareul li a,.btt-socialshareul li a:visited{color:#fff!important;text-decoration:none!important;font-style:italic}
.btt-socialshareul li a:hover,.btt-socialshareul li a:active{color:#fff!important;text-decoration:underline!important}
.btt-socialshareul li p{margin:0}

Now find this line:

<b:includable id='post' var='post'>

Scroll down slowly until you see this line:

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

Now add below code just after above line:

<b:if cond='data:blog.pageType == "item"'>
<div class='btt-socialshare'>
<ul class='btt-socialshareul' id='btt-socialshareul'>
<li class='btt-share-this'><p>Share This Article  </p></li>
<li class='btt-facebook'>
<a expr:href='&quot;;src=bm&amp;u=&quot; + data:post.url + &quot;&amp;t=&quot; + data:post.title' onclick=',&quot;sharer&quot;,&quot;toolbar=0,status=0,width=626,height=436&quot;); return false;' rel='nofollow' title='Share this on Facebook'><p>Facebook</p></a>
<li class='btt-twitter'>
<a expr:href='&quot;; + data:post.title + &quot; -- &quot; + data:post.url' rel='nofollow' title='Tweet This!'><p>Twitter</p></a>
<li class='btt-google'>
<a expr:href='&quot;; + data:post.url' onclick=',   &quot;&quot;, &quot;menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600&quot;);return false;' rel='nofollow' title='Share this on Google+'><p>Google+</p></a>
<li class='btt-stumbleupon'>
<a expr:href='&quot;; + data:post.url + &quot;&amp;title=&quot; + data:post.title' rel='nofollow' title='Stumble upon something good? Share it on StumbleUpon'><p>Stumble</p></a>
<li class='btt-digg'>
<a expr:href='&quot;;url=&quot; + data:post.url + &quot;&amp;title=&quot; + data:post.title' rel='nofollow' title='Digg this!'><p>Digg</p></a>

Save your theme. Now social buttons will be displayed in post pages of your blog.

Find results will be look like this:

Blogger Social Share Buttons

File Under : bookmarks, facebook, google plus, twitter

Leave a Reply