How To Add Perfect Share Box to Blogger

Posted by Lasantha Bandara on January 22nd, 2013 File Under : bookmarks, button, email, facebook, twitter, widget39 Comments

In this tutorial, I am going to show how to add a useful share box for your blogger blog. This share box contains official Tweet button with counter, official Facebook share button with counter, official Google plus button with counter, official Stumbleupon button with counter, Pinterest button, Linkedin button, Print button and Facebook like button. I have configure all this button for Blogger blogs, so you can add this share box quickly to your blog.

Tutorial Updated : 2013/01/22

Perfect Share Box for Blogger Blogs

Now follow the steps given below to add this share box for your blog.

1.Go to "Template" --> "Edit HTML" of your blog.

2.Click on "Expand Widget Templates"

3.Add this code just above <head> tag:

<script src='' type='text/javascript'>
{lang: 'en-US'}

4.Now Scroll down to where you see below code:

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

5.Copy Share Box code given below and paste it just below the above code.

NOTE: If you can't find <div class='post-header-line-1'/> in your template, paste your "Share Box" code just before <data:post.body/> .

<b:if cond='data:blog.pageType == "item"'>

<style type='text/css'>
.multisharebox{background:none repeat scroll 0 0 #EFEFEF;float:right;margin:5px 0 3px 10px;padding:0 5px 0;text-shadow:0 1px 0 #FFF;width:260px;border:4px solid #d8dfea}
.multisharebox table{margin-bottom:0 !important}
.multisharebox td{padding:4px 3px !important}
.fb-like-boxtop{background:none repeat scroll 0 0 #EDEFF4;border:1px solid #D8DFEA;color:#000;float:right;font-size:11px;margin:0 0;padding:5px 10px;text-align:left;width:230px}
.fb-like-boxtop a{color:#000;text-decoration:none}
.fb-like-boxtop a:hover{color:#000;text-decoration:underline}
.fb-like-box{background:none repeat scroll 0 0 #EDEFF4;border:1px solid #D8DFEA;color:#000;float:right;font-size:11px;height:60px;margin:5px 0;overflow:hidden;padding:5px 10px;text-align:left;width:230px}

<!-- Perfect Share Box : Created by  -->
<div class='multisharebox'>
<td><a class='twitter-share-button' data-count='vertical' data-lang='en' data-related='' data-via='' expr:data-text='data:post.title' expr:data-url='data:post.url' href='' rel='nofollow'/>
<b:if cond='data:post.isFirstPost'>
<script src='' type='text/javascript'>
<td><script expr:src='&quot;;r=&quot; + data:post.url'/></td>
<td><g:plusone size="tall" expr:href="data:post.canonicalUrl"/></td>
<td><a expr:share_url='data:post.url' name='fb_share' rel='nofollow' type='box_count'/>
<script src='' type='text/javascript'/></td>
<td><div class='fb-like-boxtop'><a class='pin-it-button' count-layout='none' expr:href='&quot;; + data:post.url'>Pin It Now!</a>
<a href='javascript:void(run_pinmarklet())' style='height:20px; display:inline-block;'/>
<script src='' type='text/javascript'/>
<script type='text/javascript'>
function run_pinmarklet() {
var e=document.createElement(&#39;script&#39;); e.setAttribute(&#39;type&#39;,&#39;text/javascript&#39;);
e.setAttribute(&#39;src&#39;,&#39;; + Math.random()*99999999);
</script> <script src='' type='text/javascript'/><script data-counter='right' expr:data-url='data:post.url' type='in/share'/> <a href='javascript:window.print();'><img src=''/></a></div></td>
<td><div class='fb-like-box'>
Do you like this post?
<iframe allowTransparency='true' expr:src='&quot;; + data:post.url + &quot;&amp;layout=standard&amp;show_faces=false&amp;width=230&amp;action=like&amp;font=arial&amp;colorscheme=light&quot;' frameborder='0' scrolling='no' style='border:none; overflow:hidden; width:230px; height:40px;'/>
<!-- Perfect Share Box : Created by  -->


Note : This share box now will add to your Blogger post pages only. If you want to show it in every pages, then simply remove green lines from the code.

6. Save your template and you are done.

File Under : bookmarks, button, email, facebook, twitter, widget

39 Responses to “How To Add Perfect Share Box to Blogger”

  1. _RosarioZapien_ says:

    interesting right now proves it

  2. D.N.H says:

    Oh. Very cool. I like it! Thanks for share!

  3. Emma says:

    Great tips, thank you! How can I change the alignment?

  4. Blogger Tips And Tricks|Latest Tips For Bloggers says:


    .multisharebox {
    background: none repeat scroll 0 0 #EFEFEF;
    float: right;
    margin: 5px 0px 3px 10px;
    padding: 0 5px 0;
    text-shadow: 0 1px 0 #FFFFFF;
    width: 260px;
    border:4px solid #d8dfea;

    Replace above code with below one:

    .multisharebox {
    background: none repeat scroll 0 0 #EFEFEF;
    border: 4px solid #D8DFEA;
    float: left;
    margin: 5px 10px 3px 0;
    padding: 0 5px;
    text-shadow: 0 1px 0 #FFFFFF;
    width: 260px;

  5. Bloggslk අයිතිකරු says:

    My comments are going to spam folder. Why is that

  6. ksmnt68 says:

    Thank you very much

  7. yogesh saroya says:

    nice tips.
    i want to create a light box in that show adsense ad. and this light box run at page_load time .. how to do this ?? plz help

  8. Ravi Saive says:


    I need a help from you, do u have any solution for page not found redirect to homepage.

  9. iTechPlus says:

    Hi Lasantha,

    Please help me !

    Links : BLOGTHIS! | EMAILTHIS! | PRINTTHIS! is not working !

    Why ?

  10. Beben Koben says:

    so nice that's all collected to be one...hohoho

  11. Blogger Tips And Tricks|Latest Tips For Bloggers says:


    what is your blog url?

  12. Medicalebooks4u says:


  13. Fery says:

    is great bro...

  14. Mihai says:

    Hey, can you help me settle my new theme I just installed. It's actually your theme - NewsStation Blogger - and I have some problems with the Videos/Tags/Blog Archives js widget. It doesn't work and also I would like to transform it to show be something like Recent posts/Recent comments/Blog Archives. Can you give me some pointers?

  15. Adhie Mempawah says:

    thanks for you tips and trick, nice post.

  16. Nikita Mishra says:

    nice post,thanks for sharing.

  17. free-tech says:

    Great feature, thanks for sharing.

  18. Rishikesh says:

    Hello lasantha bro i having problem to inserting your code,i haven't find any (class='post-header-line-1) code in my template,plz help blog address is

  19. Blogger Tips And Tricks|Latest Tips For Bloggers says:


    add it just before <data:post.body/>

  20. Black Edition Crew says:

    hey...why so big...can it be smaller one...and at the bottom of post..can it be?

  21. vado says:

    thank you sir! check my blog for more stuff 🙂

  22. The "SpinDoctor" says:

    Hi, could you give me some advice on alignment on my blog Ive tried everything to get the left column the same as the right but it just skews over. There's a big unused space to the left of the left column. Driving me crazy!!! Thanks

  23. Chuck says:

    Thank you

  24. Xtreamer says:

    hmmm thanks
    and not perfect out of width 🙁

  25. Sevi_shine Princess says:

    thanks 🙂

  26. MooChenk says:

    Thanks for sharing.

  27. NJ_9 says:

    thanks thanks thanks i was looking for this! Superb man!

  28. Waryam says:

    Very Good Bro Can You Add +1 Instead Of Google Buzz

  29. yousefalnatsheh says:

    Thanks A lot good post

    Visit My Sites

  30. yasith says:

    wow cool one again...thanks Lasantha.If u can please help me to grow my blog... Yasith from Sri lanka.

  31. Ravi @Technology Blog says:

    Thanks lasantha for another cool and awesome Blogger trick

  32. Sujon Paul says:

    Nice widget. I like it.

  33. PrimeMagazine says:

    I'm using a similar code, but this one seems better

    thanks for sharing.

  34. My Blogger Trick says:

    nice widget what do you think about Popup Like Box widget for blogger or wordpress

  35. Riya says:

    how can i add this box below post
    and left side?

  36. San says:


    I used your "Elegant" blogger template today for my wedding blog. I have 2 questions I hope you can help.

    How can I make the header BIGGER? 460 X60 is too small.

    How can I move this multishare box to the bottom of my blog posts?

    Thank you so much!! Your site has been extremely helpful 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.