Spice Up Your Blogger Blog with Custom Designed Templates - BTNT Services!

New Share Button With Counters On Blogger

On By // Leave a Comment
If you want to add these share buttons on your blog then follow the instruction given below.

Before we start the actual tutorial, let's first get the scripts which make the share counters appear.

Go this link: Sharethis.
Register with them and hit the "Publishers >> Get the Share Widget" tab.
Select the following options on the page that appears.
  1. Website or Blog? Choose website.
  2. Pick your style - Third Option (Horizontal counters)
  3. From the various networking sites, choose the ones which you want to have on your blog. Just use the left and right arrows to add and remove the various counters. The up and down arrows aligns your counters - which one should appear first in your list. It's pretty self-explanatory.
  4. Choose the Oauth widget or Classic Widget.
  5. Now, hit the "Get the button" tab and copy the scripts that are generated to two separate text documents temporarily and name them Script 1 (Script in the top/first box) and Script 2 (Script in the bottom/second box).

Now, you have the scripts with you. You need to place them on your blogger template with some CSS to make it more attractive.

So, let's get it done!!!
  1. Navigate to "Design >> Edit HTML" and make a backup of your template by clicking on the "Download full template" link at the top of the page. Once the back up is over, search for the following piece of code.
  2. ]]></b:skin>
  3. Add the following code (CSS) just above the line mentioned in step 1.
    .sharethis {
    border: dashed #ddd;
    border-width:1px 0 1px 0;
    margin: 10px auto 10px;
    padding: 3px 0 1px 0px;
    overflow: hidden;
  4. Next, search for the following piece of code.
  5. Place the coding present in the text document Script 2, just above the line mentioned in step 3.
  6. Save your template. Then, expand your template and search for the following piece of code.
    <div class='post-footer-line post-footer-line-1'/>
  7. Add the following piece of code just below the line mentioned in step 5.
    <b:if cond='data:blog.pageType == "item"'>
    <span style='font-size:20px; font-family:Georgia; font-style: italic; line-height:21px; margin-top:1px; margin-bottom:-2px;'>Enjoyed the article?</span>
    <div class='social'>
    <div style='margin-left:10px; margin-top:0px; margin-bottom:3px;'>
    <div class='clear'/>
  8. Replace the line highlighted in green with the coding present in the text document Script 1.
  9. That's it! Save your template.
Note: The counters will be visible only on post pages. If you wish to have them on all the pages, then remove the first and the last line in the coding mentioned at step 6.

I would like to point out one advantage with this counter which is better loading time. That is, you get all the counters at one place. So, it saves a lot of time in loading your scripts. Hope you enjoyed this post. Share your opinions about the counter/post via comments!


Post a Comment

I Appreciate your valuable Feedback. So, Please DO NOT SPAM - Spam comments will be deleted immediately.

Don't use brand name in name field and you're not allowed to use links in comments unless it's necessary

Such Comments will be removed immediately.