Like Us

Footer Links

Latest Posts
Browsing Category "blogger tricks"

Auto Number Threaded Comments in Blogger

- Thursday, 24 April 2014 No Comments
Today we'll be seeing how to add comments counter to the threaded comments in blogger. I'm not wasting my time explaining about blogger comments system and threaded comments. I guess you know it and you don't want me to explain.


We'll be using the code shared by Mohammad Mustafa Ahmedzai on his blog. And he has used a non-JavaScript approach to show threaded comments in blogger.

And by the way i hope you've switched to threaded comments in blogger. If you haven't please do.

VIEW A DEMO

Adding Automatic Numbering Threaded Comments

  1. First of all navigate to blogger dashboard > template and click on Edit HTML
    don't forget to backup your template
  2. Now search for </b:skin> and paste the following code just above it. And save the changes.
/*----- Comment Counter -----*/
.comment-thread ol {
counter-reset: mbt-comments;
}
.comment-thread li:before {
content:counter(mbt-comments);
counter-increment: mbt-comments;
font-size: 30px;
float:left;
position:relative;
top:0px;
left:-10px;
margin-right:0px;
height:100px;
margin-right:0px;
font-weight:bold;
font-family:arial, georgia;
color: #666;
}
.comment-thread ol ol {
counter-reset: mbt-comments-sub;
}
.comment-thread li li:before {
content: counter(mbt-comments) "." counter(mbt-comments-sub,lower-latin);
counter-increment:mbt-comments-sub;
font-size: 12px;
color: #666;
position:relative;
top:10px;
}
.comments .comments-content .comment-header, .comments .comments-content .comment-content {  margin:0px 0px 8px 28px!important;} 

Customize it for you

✔change the values highlighted in green to customize the font size and colour in main comments counter
✔ change the values highlighted in blue to customize the font size and colour in reply comments counter

I've kept the tutorial to simple and short, so if you've and queries do leave back comments. Thanks.
Read the original article @ Mybloggertricks

Floating Older/Newer Post Button for Blogger

- Saturday, 19 April 2014 No Comments
Floating Next - Prev Button For BloggerOne of the most important things we should keep in mind about our blog’s design is the ease of navigation. We should provide our users with an easy and attractive navigation system in our blog. Easy navigation doesn’t meant to keep your blog design simple. It should be attractive and eye catchy.

Most often, the older/newer post links in our blogs are always kept at places where people won’t easily notice it. And that’s on big mistake we can ever do to lower our page views. So let us correct that mistake by adding this stylish floating next or previous post links button. This attractive and eye catching buttons floats on the either sides of your blog’s sidebar.


Floating Older - Newer Post Button For Blogger

How to have a Floating Next – Prev Post button in your blog?

✔ Go to Blogger dashboard > Template > Edit HTML
✔ Now search for ]]></b:skin> and paste the below code just above it

.arrowLeft a {position: fixed;z-index: 100;left: -5px;top: 45%;padding: 25px 20px;-webkit-transition: .2s ease-in;-moz-transition: .2s ease-in;-o-transition: .2s ease-in;transition: .2s ease-in;}.arrowLeft a:hover {left: 0;-webkit-transition: .2s ease-in;-moz-transition: .2s ease-in;-o-transition: .2s ease-in;transition: .2s ease-in;color: #fff;}.arrowRight a {position: fixed;z-index: 100;right: -5px;top: 45%;padding: 25px 20px;-webkit-transition: .2s ease-in;-moz-transition: .2s ease-in;-o-transition: .2s ease-in;transition: .2s ease-in;}.arrowRight a:hover {right: 0;-webkit-transition: .2s ease-in;-moz-transition: .2s ease-in;-o-transition: .2s ease-in;transition: .2s ease-in;color: #fff;}.arrowNav a {background: #000000;color: #fff;text-decoration: none;font-size: 16px;}

 ✔ Now search for <b:includable id='nextprev'> and find the below coding in your template

<b:includable id='nextprev'><div class='blog-pager' id='blog-pager'><b:if cond='data:newerPageUrl'><span id='blog-pager-newer-link'><!-- DHI the newer post --><div class='arrowLeft'> <a class='prev' expr:href='data:newerPageUrl' expr:id='data:widget.instanceId + &quot;_blog-pager-newer-link&quot;' expr:title='data:newerPageTitle' id='nextLink'><span class='arrow'/><span class='prevnext'>&#8592;</span></a> </div></span></b:if><b:if cond='data:olderPageUrl'><span id='blog-pager-older-link'><!-- DHI the older post --><div class='arrowRight'> <a class='next' expr:href='data:olderPageUrl' expr:id='data:widget.instanceId + &quot;_blog-pager-older-link&quot;' expr:title='data:olderPageTitle' id='prevLink'><span class='arrow'/><span class='prevnext'>&#8594;</span><br/></a></div></span></b:if><b:if cond='data:mobileLinkUrl'><div class='blog-mobile-link'><a expr:href='data:mobileLinkUrl'><data:mobileLinkMsg/></a></div></b:if></div><div class='clear'/></b:includable>

 ✔ Now completely replace the above coding with the below one. !important

<b:includable id='nextprev'> <div class='blog-pager' id='blog-pager'> <div class='arrowNav'> <b:if cond='data:newerPageUrl'> <span id='blog-pager-newer-link'> <!-- DHI the newer post --> <div class='arrowLeft'> <a class='prev' expr:href='data:newerPageUrl' expr:id='data:widget.instanceId + &quot;_blog-pager-newer-link&quot;' expr:title='data:newerPageTitle' id='nextLink'> <span class='arrow'/> <span class='prevnext'>&#8592;</span></a> </div> </span> </b:if> <b:if cond='data:olderPageUrl'> <span id='blog-pager-older-link'> <!-- DHI the older post --> <div class='arrowRight'> <a class='next' expr:href='data:olderPageUrl' expr:id='data:widget.instanceId + &quot;_blog-pager-older-link&quot;' expr:title='data:olderPageTitle' id='prevLink'> <span class='arrow'/> <span class='prevnext'>&#8594;</span><br/> </a></div> </span> </b:if></div> <a class='home-link' expr:href='data:blog.homepageUrl'><data:homeMsg/></a> <b:if cond='data:mobileLinkUrl'> <div class='blog-mobile-link'> <a expr:href='data:mobileLinkUrl'><data:mobileLinkMsg/></a> </div> </b:if> </div> <div class='clear'/></b:includable>

✔ Now that’s it. It should be floating on your blog now. Take a look.

Add Awesome Page Loading Effect to Blogger Easily

- Saturday, 22 March 2014 No Comments
animated page loading effectThis is one awesome stylish addition you can add to spice up your blog. I've added this animated page loading effect to my blog. You can see a demo here itself by clicking on any link inside the site. It’s gives a cool effect to your blog.
I guess you liked it on my blog. So here is how to add it to your blog.









How to add Page Loading Effect to your blog


  • Just navigate to Blogger Dashboard> Templates > Edit HTML
  • Now search for <head> and below code just below it. (OR search for </head> and paste below code above it)

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" type="text/javascript"></script>
Note : You can skip the above step, if you’ve already added JQuery library to your blog.

  • Now search for </body> and add below code just above it.

<style>
#bloggslab-page-loader {
        position: fixed!important;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 9999;
        background:#000 url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLyVmosChwJdlHm6RX4Foe2cLs-qtBM-T-2jZEabsKTgF9fV10BDIX-5yzCKMEjsZcnsJAAeVp1pKE4CPoZAKjm33NGsFzPVsDNyfqytyooRRNtewlmc1D_YKsiyfX7S6ei-iTX5PJqSw/s200/load6.gif') no-repeat 50% 30%;
        color: #FFF;
        display: none;
        font: 0/0 a;
        text-shadow: none;
        padding: 1em 1.2em;
}
</style>
<script type='text/javascript'>
//<![CDATA[
$(document.body).append('<div id="bloggslab-page-loader">Loading...</div>');
$(window).on("beforeunload", function() {
    // ... Show the Animation `.fadeIn()`
    $('#bloggslab-page-loader').fadeIn(1000).delay(6000).fadeOut(1000);
});
//]]>
</script>
Okay, that’s it. now save your template and look at your blog. Oow!

Make any Widget Sticky/Float in Blogger

- Sunday, 2 February 2014 No Comments
make floating widgets in bloggerHere is a simple trick to turn your widgets sticky when a user scrolls down your blog. We’ll use a simple to code to make your widget float as the user scrolls down the page. You can use this simple code to turn any widget in your blog sticky regardless of where it is. You only need to have the Widget ID. It will work perfect for email subscription box, social sharing widget, menu navigation bar or anything that has a widget id.

Want to see a DEMO. Look at our navigation bar floating as you scroll down the page. Catchy, isn’t it?





Let's see How we can make any widget sticky

  • Navigate to Blogger Dashboard > Template > Edit HTML
  • Now search for </body> and paste the below code just above it.
<script>
// Sticky widget by bloggslab.com
// Tutorial at http://www.bloggslab.com/2014/02/how-to-make-widgets-sticky.html
// Free to use or share, but please keep this notice intact.
//<![CDATA[
bs_makeSticky("YOUR_WIDGET_ID"); // enter your widget ID here
function bs_makeSticky(elem) {
var bs_sticky = document.getElementById(elem);
var scrollee = document.createElement("div");
bs_sticky.parentNode.insertBefore(scrollee, bs_sticky);
var width = bs_sticky.offsetWidth;
var iniClass = bs_sticky.className + ' bs_sticky';
window.addEventListener('scroll', bs_sticking, false);
function bs_sticking() {
var rect = scrollee.getBoundingClientRect();
if (rect.top < 0) {
bs_sticky.className = iniClass + ' bs_sticking';
bs_sticky.style.width = width + "px";
} else {
bs_sticky.className = iniClass;
}
}
}
//]]>
</script>

<style>
.bs_sticking {background:#f2f2f2 !important; position:fixed !important; top:0; z-index:9999; box-shadow:0px 10px 4px -5px rgba(0,0,0,0.3); margin-top: 0; position:relative\9 !important;}
</style>
REPLACE  YOUR_WIDGET_ID with your widgets ID (see: how to find widget id of your widget)
NOTE: Edit the code highlighted in blue to customize the style.
  • Now Save the Template.

jQuery to Auto Open all External Links in new Window

- Saturday, 25 January 2014 No Comments
open all external links in new windowTired of putting target="_blank" to every external link in your blog to make them in a new window when clicked. Here’s a simple jQuery script to automatically open all your external links in a new window. The script detects external hostnames and will automatically +add target="_blank" attribute to the external link when clicked. Thus making your readers stay in your blog itself and thus reducing bounce rates and increasing pages views.
The script works in both blogger and wordpress.




HOW TO OPEN ALL YOUR EXTERNAL LINKS IN A NEW TAB

1. Navigate to Blogger Dashboard > Template
2. Now choose Edit HTML. (Note: Always do a backup while editing your template)
3. Search for </head> and just above it paste the below code.
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js' type='text/javascript'></script> <script type='text/javascript'>
$(document).ready(function() {
  $("a[href^='http://']").each(
    function(){
     if(this.href.indexOf(location.hostname) == -1) {
        $(this).attr('target', '_blank');
      }
    }
  );
$("a[href^='https://']").each(
function(){
if(this.href.indexOf(location.hostname) == -1) {
$(this).attr('target', '_blank');
}
}
);
 
});
</script>
4. Save the template.
NOTE 1: Do not add the bolded code if your blog template already have jQuery library linked in.
NOTE 2: If you change == -1) in the code highlighted in yellow to == 1) then all your internal links will start opening in a new tab.
That’s it. Just check your blog and click on any external link to see it working. Hope this was helpful.
Credits: This script was originally shared by Mohammad Mustafa Ahmedzai of MBT. You should thank him. Peace:)

Stylish Next/Previous Page Navigation System for Blogs

- Friday, 10 January 2014 No Comments
stylish next previous post navigationOne of the popular blogging tricks blog MBT has recently replaced their Older/Newer post navigation in a more neat and elegant way which is more efficient and reader attractive. And they’ve shown their kindness again by sharing the trick behind adding it with their readers (of course I'm a loyal reader).
We’ll be using simple jQuery scripts to add this beautiful and minimalistic navigation system into blogger. One thing i can assure is that it won’t slow slow down your blog for any reason.




HOW TO ADD PAGER NAVIGATION TO BLOGGER

► Navigate to Blogger Dashboard > Template
Snap_2013.11.16_10h43m57s_001_► Click on EDIT HTML
Snap_2013.11.26_11h38m40s_001_► Now search for ]]></b:skin> and add the below code just above it.
/*################MBT Pager ##########################*/
.mbt-pager { border-top: 2px dashed #ddd; border-bottom: 2px dashed #ddd;  margin-bottom: 10px;   overflow:hidden; padding:0px;}
.mbt-pager li.next { float: right; padding:0px; background:none; margin:0px;}
.mbt-pager li.next a { padding-left: 24px; }
.mbt-pager li.previous { margin:0px -2px 0px 0px; float: left;  border-right:1px solid #ddd; padding:0px; background:none;
}
.mbt-pager li.previous a { padding-right: 24px;  }
.mbt-pager li.next:hover, .mbt-pager li.previous:hover  {background:#333333; }
.mbt-pager li { width: 50%; display: inline; float: left; text-align: center; }
.mbt-pager li a { position: relative; min-height: 77px; display: block; padding: 15px 46px 15px; outline:none; text-decoration:none;}
.mbt-pager li i { color: #ccc; font-size: 18px; }
.mbt-pager li a strong { display: block; font-size: 20px; color: #ccc; letter-spacing: 0.5px; font-weight: bold; text-transform: uppercase; font-family:oswald, sans-serif, arial; margin-bottom:10px;}
.mbt-pager li a span { font-size: 15px; color: #666;  font-family:oswald,Helvetica, arial; margin:0px;}
.mbt-pager li a:hover span,
.mbt-pager li a:hover i { color: #ffffff; }
.mbt-pager li.previous i { float:left; margin-top:15%; margin-left:5%; }
.mbt-pager li.next i { float: right;
margin-top: 15%;
margin-right: 5%; }
.mbt-pager li.next i, .mbt-pager li.previous i ,
.mbt-pager li.next,  .mbt-pager li.previous{
-webkit-transition-property: background color; -webkit-transition-duration: 0.4s; -webkit-transition-timing-function: ease-out;
-moz-transition-property: background color; -moz-transition-duration: 0.4s; -moz-transition-timing-function: ease-out;
-o-transition-property: background color; -o-transition-duration: 0.4s; -o-transition-timing-function: ease-out;
transition-property: background color; transition-duration: 0.4s; transition-timing-function: ease-out; }
.fa-chevron-right {padding-right:0px;}
CUSTOMIZATIONS
  • to change the background colour edit : background:#333333
  • to change the font colour edit : color: #ffffff
►  Now search for <head> and just below it paste the below code:
    <script src='http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js' type='text/javascript'/> <link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'/>
    Remove the bolded code if you’ve already added jQuery library in your blog.

    ► Now search for <data:post.body/> and just below it paste the below code.
    <b:if cond='data:blog.pageType == &quot;item&quot;'>
    <b:if cond='data:blog.pageType != &quot;static_page&quot;'>
    <ul class='mbt-pager'>
            <li class='next'>
    <b:if cond='data:newerPageUrl'>
    <i class='fa fa-chevron-right'/><a class='newer-link' expr:href='data:newerPageUrl' expr:id='data:widget.instanceId + &quot;_blog-pager-newer-link&quot;' rel='next'/>
    <b:else/>
    <i class='fa fa-chevron-right'/><a rel='next'><strong>Next</strong> <span>You are viewing Most Recent Post</span></a>
    </b:if>
    </li>
        <li class='previous'>
    <b:if cond='data:olderPageUrl'>
    <i class='fa fa-chevron-left'/><a class='older-link' expr:href='data:olderPageUrl' expr:id='data:widget.instanceId + &quot;_blog-pager-older-link&quot;' rel='previous'/>
    <b:else/>
    <i class='fa fa-chevron-left'/><a rel='previous'><strong>Previous</strong> <span>You are viewing Last Post</span></a>
    </b:if>
    </li>
        </ul>
    <script type='text/javascript'>
    //<![CDATA[
    (function($){   
        var newerLink = $('a.newer-link');
        var olderLink = $('a.older-link');
        $.get(newerLink.attr('href'), function (data) {
         newerLink.html('<strong>Next</strong> <span>'+$(data).find('.post h3.post-title').text()+'</span>');   
        },"html");
        $.get(olderLink.attr('href'), function (data2) {
         olderLink.html('<strong>Previous</strong> <span>'+$(data2).find('.post h3.post-title').text()+'</span>');   
        },"html");
    })(jQuery);
    //]]>
    </script>
          </b:if></b:if>
    CUSTOMIZATIONS


  1. Replace the highlighted codes with your text.



  2. ► Save the template and that’s it. Now take a look at your blog.

      Thanks To MyBloggerTricks.com for sharing this awesome widget with us and everyone. Smile

      Removing existing Older/Newer Post buttons

      Your blog template will have a default Next/Previous post navigation buttons below comments box. Since we do not need two Older/Newer Post button, we;ll just remove the old one. Follow the below steps.
      ► Search for <b:includable id='nextprev'> and you’ll see codes similar to

        <div class='blog-pager' id='blog-pager'>
           <b:if cond='data:newerPageUrl'>
             <span id='blog-pager-newer-link'>
             <a class='blog-pager-newer-link' expr:href='data:newerPageUrl' expr:id='data:widget.instanceId + &quot;_blog-pager-newer-link&quot;' expr:title='data:newerPageTitle'><data:newerPageTitle/></a>
             </span>
           </b:if>
           <b:if cond='data:olderPageUrl'>
             <span id='blog-pager-older-link'>
             <a class='blog-pager-older-link' expr:href='data:olderPageUrl' expr:id='data:widget.instanceId + &quot;_blog-pager-older-link&quot;' expr:title='data:olderPageTitle'><data:olderPageTitle/></a>
             </span>
           </b:if>
           <a class='home-link' expr:href='data:blog.homepageUrl'><data:homeMsg/></a>
           <b:if cond='data:mobileLinkUrl'>
             <div class='blog-mobile-link'>
               <a expr:href='data:mobileLinkUrl'><data:mobileLinkMsg/></a>
             </div>
           </b:if>
        </div>
        <div class='clear'/>

        ► Now you’ve to Enclose the above code in between conditional codes like below,

          <b:if cond='data:blog.pageType != &quot;item&quot;'>
          <b:if cond='data:blog.pageType != &quot;static_page&quot;'>
          THE ABOVE CODE
          </b:if></b:if>

          Now your old page navigation will disappear form post pages and will appear on you homepage. And if you wish to remove your older page navigation then simply delete the whole code above. Good Luck!Winking smile

          Adding Smooth ‘Scroll to Top’ Button to Blogger using jQuery

          - Tuesday, 31 December 2013 No Comments
          add scroll to top buttons to blogger blogsI in my previous post shared a unique list of ‘back to top'/bottom’ buttons. And today in this post I'll show you how to use those ‘back to top'/bottom’ buttons efficiently in you blog. We’ll be using simple jQuery scripts to add smooth scrolling effect to the buttons.
          ‘Back to top’ buttons are among the essentials you should add to your blog. It not only make the site more navigable but also adds a professional look to your blog. So it’s strongly recommend to have a scroll to top button in your blog. And you can add one to your blog easily by following the simple steps below.




          SEE: 110+ ‘Back to Top’ and ‘Back to Bottom’ Buttons

           ♪♫ GOOD BYE 2013 ♪♫
           

          HOW TO ADD SCROLL TO TOP BUTTONS TO BLOGGER  BLOGS

          • Firstly, navigate to Blogger > Layout.
          • Now choose Add a gadget > HTML/JavaScript widget.
          • Now copy the below code and paste it inside the widget.
          <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
          <script type="text/javascript" >
          /***********************************************
          * Scroll To Top Control script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
          * Modified by www.BloggsLab.com
          * This notice MUST stay intact for legal use
          * Visit Project Page at http://www.dynamicdrive.com for full source code
          ***********************************************/
          var scrolltotop={
              //startline: Integer. Number of pixels from top of doc scrollbar is scrolled before showing control
              //scrollto: Keyword (Integer, or "Scroll_to_Element_ID"). How far to scroll document up when control is clicked on (0=top).
              setting: {startline:100, scrollto: 0, scrollduration:1000, fadeduration:[500, 100]},
              controlHTML: '<img src="IMAGE LINK" />', //HTML for control, which is auto wrapped in DIV w/ ID="topcontrol"
              controlattrs: {offsetx:5, offsety:5}, //offset of control relative to right/ bottom of window corner
              anchorkeyword: '#top', //Enter href value of HTML anchors on the page that should also act as "Scroll Up" links
              state: {isvisible:false, shouldvisible:false},
              scrollup:function(){
                  if (!this.cssfixedsupport) //if control is positioned using JavaScript
                      this.$control.css({opacity:0}) //hide control immediately after clicking it
                  var dest=isNaN(this.setting.scrollto)? this.setting.scrollto : parseInt(this.setting.scrollto)
                  if (typeof dest=="string" && jQuery('#'+dest).length==1) //check element set by string exists
                      dest=jQuery('#'+dest).offset().top
                  else
                      dest=0
                  this.$body.animate({scrollTop: dest}, this.setting.scrollduration);
              },
              keepfixed:function(){
                  var $window=jQuery(window)
                  var controlx=$window.scrollLeft() + $window.width() - this.$control.width() - this.controlattrs.offsetx
                  var controly=$window.scrollTop() + $window.height() - this.$control.height() - this.controlattrs.offsety
                  this.$control.css({left:controlx+'px', top:controly+'px'})
              },
              togglecontrol:function(){
                  var scrolltop=jQuery(window).scrollTop()
                  if (!this.cssfixedsupport)
                      this.keepfixed()
                  this.state.shouldvisible=(scrolltop>=this.setting.startline)? true : false
                  if (this.state.shouldvisible && !this.state.isvisible){
                      this.$control.stop().animate({opacity:1}, this.setting.fadeduration[0])
                      this.state.isvisible=true
                  }
                  else if (this.state.shouldvisible==false && this.state.isvisible){
                      this.$control.stop().animate({opacity:0}, this.setting.fadeduration[1])
                      this.state.isvisible=false
                  }
              },
              init:function(){
                  jQuery(document).ready(function($){
                      var mainobj=scrolltotop
                      var iebrws=document.all
                      mainobj.cssfixedsupport=!iebrws || iebrws && document.compatMode=="CSS1Compat" && window.XMLHttpRequest //not IE or IE7+ browsers in standards mode
                      mainobj.$body=(window.opera)? (document.compatMode=="CSS1Compat"? $('html') : $('body')) : $('html,body')
                      mainobj.$control=$('<div id="topcontrol">'+mainobj.controlHTML+'</div>')
                          .css({position:mainobj.cssfixedsupport? 'fixed' : 'absolute', bottom:mainobj.controlattrs.offsety, right:mainobj.controlattrs.offsetx, opacity:0, cursor:'pointer'})
                          .attr({title:'Scroll Back to Top'})
                          .click(function(){mainobj.scrollup(); return false})
                          .appendTo('body')
                      if (document.all && !window.XMLHttpRequest && mainobj.$control.text()!='') //loose check for IE6 and below, plus whether control contains any text
                          mainobj.$control.css({width:mainobj.$control.width()}) //IE6- seems to require an explicit width on a DIV containing text
                      mainobj.togglecontrol()
                      $('a[href="' + mainobj.anchorkeyword +'"]').click(function(){
                          mainobj.scrollup()
                          return false
                      })
                      $(window).bind('scroll resize', function(e){
                          mainobj.togglecontrol()
                      })
                  })
              }
          }
          scrolltotop.init()
          </script>
          Replace: IMAGE LINK with your ‘back to top’ buttons image link. See our collection of scroll to top buttons
          Now save the widget and drag the widget to the bottom most position in the layout.

          That’s it done! Now take a look at your blog to see the back to top button working smoothly. The widget only appears as one scrolls down the page and it’ll automatically disappear as one scrolls up. Nice yeah! Hope that was made easy. thank you.Open-mouthed smile

          Add a Widget Inside a Scroll Box/Bar

          - Tuesday, 24 December 2013 No Comments
          put a widget inside a sroll barDoes tall widgets take out your blog’s valuable space and keep checking your readers’ patience ? Here is a simple trick to put your tall widgets inside a scroll bar. In this simple tutorial I'll show you how to add a widget (any widget) inside a scroll bar. You can easily adjust the height of the scroll box and the title of the widget will remain static as normal. Only the content of the widget will be inside the scroll box.

          How to Put a Widget Inside a scroll box

          • Firstly, Find the Widget ID of the widget you want to put inside the scroll box
          • Now navigate to Blogger Dashboard > Template > Edit HTML
          • Search for ]]></b:skin>
          • Paste the below code just above ]]></b:skin> and save the template
          /* Scroll box by Bloggslab.com START */
          #YourWidgetId .widget-content {
          height: 200px;
          overflow: auto;
          }
          /* Scroll box END */
          NOTE :


        1. Replace YourWidgetId with the widget ID you found in first step.
        2. Adjust the height of the scroll box by changing the value 200px

        3. That was so simple adding a widget inside a scroll box. Hope you added the widget inside a scroll bar easily without any troubles. take care!Laughing out loud

          Simplest Way to Create a Tabbed Content Widget

          - Friday, 20 December 2013 No Comments
          how to create a multi tabbed widget in bloggerWe all need to fill our sidebar with lots of reader attractive widgets. But the space doesn’t always let us to do so. Also we have to limit the number of widgets in the sidebar to make our blog attractive and user friendly. But we’ve to make use of the available space efficiently and effectively. Multi Tabbed Widgets are something that lets us achieve it. We can add any number of widgets into these tabs.
          Adding a tabbed widget in normal way is a little tricky. We need to edit our blogger template and css codes and all to it. If the code isn’t at right place it won’t work. But what i am going to share today is the simplest and easiest way to add a multi tabbed widget to your blog’s sidebar.
          Let’s see how we can add a tabbed widget to your sidebar in the simplest way.

          Creating Multi Tabbed Widget in Blogger

          • Go to Blogger Dashboard > Layout and click on Add a widget.
          • Now select HTML/JavaScript widget. NOTE : Leave the title blank
          • Copy the below code and paste it into the widget and save it.
          <style type="text/css">
          .tabber {
          padding: 0px !important;
          border: 0 solid #bbb !important;
          }
          .tabber h2 {
          float: left;
          margin: 0 1px 0 0;
          font-size: 12px;
          padding: 3px 5px;
          border: 1px solid #bbb;
          margin-bottom: -1px; /*--Pull tab down 1px--*/
          overflow: hidden;
          position: relative;
          background: #e0e0e0;
          cursor:pointer;
          }
          html .tabber h2.active {
          background: #fff; border-bottom: 1px solid #fff; /*--"Connect" active tab to its content--*/
          }
          .tabber .widget-content {
          border: 1px solid #bbb;
          padding: 10px;
           background: #fff; clear:both;
          margin:0;
          }
          .codewidget, #codeholder {
          display:none;
          }
          </style>
          <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js"></script>
          <script type="text/javascript" src="https://dl.dropboxusercontent.com/s/b7ly5e0idltxpnz/tabbed-widget-bloggslab.js"></script>
          <script type="text/javascript">
          $(document).ready(function() {
          $('#codeholder').bloggerTabber ({
            tabCount : 3 });
          });
          </script>
          <!-- to make sure the widget works, do not alter the code below -->
          <div id='codeholder'><p>Get this <a href="http://www.bloggslab.com/" target="_blank">tabbed widget</a></p></div>
          Now place the widgets you want to add into the tabs below the HTML/JavaScript widget. Or place the HTML/JavaScript widget above the widgets you want to tabify.Snap_2013.12.17_16h44m12s_006_
          That’s it. You’ve easily created a tabbed contents widgets without altering your template codes. Simple and efficient. Keep sharing. Red heart

          Adding Stylish Threaded Comments System to Blogger

          - Saturday, 14 December 2013 No Comments
          spiceupyoublog-like-comment-systemBlogger introduced threaded comment system an year back, from then we have see many great bloggers introducing their own stylish threaded comments system for their site. One of my favourite among many is Spice Up Your Blog’s. They have a simple colourful threaded comment system that easily help distinguish author comments from reader comments.
          And today i am going to teach you how to implement SpiceupyouBlog’s beautiful comment system in your blog. You can yourself see a demo here to see how it works.
            SEE DEMO 


          SPICE UP YOUR BLOG LIKE COMMENT SYSTEM FOR BLOGGER


        4. Firstly, navigate to Blogger Dashboard > Template > CustomizeSnap_2013.12.10_14h04m37s_003_
        5. Now in the (new) Blogger Template Designer > Advanced > Add CSSSnap_2013.12.10_14h06m43s_004_
        6. Paste the below code into the Add CSS section and click Apply to BlogSnap_2013.12.10_14h09m43s_005_
        7. @font-face { font-family: 'Philosopher'; font-style: normal; font-weight: 400; src: local('Philosopher'), url(http://themes.googleusercontent.com/static/fonts/philosopher/v4/OttjxgcoEsufOGSINYBGLYbN6UDyHWBl620a-IRfuBk.woff) format('woff'); } .comment .avatar-image-container { border: 1px solid #B6B6B6; max-height: 70px !important; margin-top: -5px; width: 70px !important; position: relative; z-index: 50; } .comment .comment-block { margin-left: 75px !important; } .comment .comment-header { background: none repeat scroll 0 0 #A9F5D0; color: #333; font-size: 15px; font-weight: bold; margin-left: 60px; } .comment .comment-header a { color: white !important; text-decoration: none; } .comment .comment-content { background: none repeat scroll 0 0 #FEFFF9; border-bottom: 2px solid #E6E6E6; font-size: 14px; margin: 0 0 30px; padding: 5px 5px 10px 10px; } .comment .comment-actions a { background: none repeat scroll 0 0 #DDD; color: #333; display: inline-block; line-height: 1; margin: 0 3px; padding: 3px 6px !important; text-decoration: none; } .comment .comment-actions a { background: none repeat scroll 0 0 #DDD; color: #333; display: inline-block; line-height: 1; margin: 0 3px; padding: 3px 6px !important; text-decoration: none; } .comment-header cite { background: none repeat scroll 0 0 #DF7401; border: 1px solid white; color: white; padding: 2px 20px; position: relative; z-index: 99; margin-left: -20px; } cite.blog-author { background: none repeat scroll 0 0 #8181F7 !important; } .icon.blog-author { display: none !important; background: url("") no-repeat scroll 0 0; margin-left: 90px; width: 60px !important; height: 60px !important; position: absolute; right: 5px; bottom: 5px; top: 10px; } .comment .comment-header { color: #333; font-size: 15px; font-weight: bold; } .comment .avatar-image-container img { border: medium none !important; height: 70px !important; width: 70px !important; max-height: 70px !important; max-width: 70px !important; } .comment .comment-actions a { background: none repeat scroll 0 0 #DDD !important; color: #333 !important; display: inline-block !important; line-height: 1 !important; margin: 0 3px !important; padding: 3px 6px !important; text-decoration: none !important; font-size:16px; } .comment .comment-actions a:hover { background: #CCC !important; text-decoration: none !important; } .comments { font-family: 'Philosopher', arial, serif !important; font-size: 1em; color: black; } .comments .continue a { display: block !important; font-weight: bold !important; padding: .5em !important; color:#E34600; font-size:16px; } .comments .continue a:hover {color:#4D3123;text-decoration:none;} .item-control { display: none !important; } .comments .continue { border-top: 2px solid transparent !important; } .comments .comments-content .icon.blog-author{position:absolute;top:-1px;right:-12px;background-image:url(http://cdn2.iconfinder.com/data/icons/crystalproject/16x16/apps/keditbookmarks.png);width:36px;height:36px;margin:0}

        8. That’s it. Simple. You’ve now made your comment system extremely beautiful through simple steps. Your old comments system is now replaced by the new stylish comments system. Now visit your blog to see whether it’s working perfectly. If it isn’t leave back a comment.Take care Winking smile
        9. Automatic Read More With Thumbnails for Blogger

          - Sunday, 8 December 2013 No Comments
          Add Auto Read More Post Summarys with tumbnailBlogger gives us an option to add jump break to posts. It enables us to display a a short summary of the post on the homepage of our blog with a link to the full post. Most of us add jump break to our posts, because displaying a short summary instead of the full post on the main page has many advantages. The main reason is that it increases page views and the visitors can easily get a selection of your posts.

          Today I'll share with you a simple script that’ll automatically create a summary of posts and display it on your homepage without using the jump breaks. See the features of it below:
          • Short summary with a read more link to the complete post.
          • Automatically creates a thumbnail from the first image of the post.
          • You can change the number of characters in the summary
          • You can adjust the thumbnail size.
          • Will work on you old posts too.

          Adding Automatic Read More to your Blog

          • Navigate to Blogger > TemplateSnap_2013.11.16_10h43m57s_001_
          • Now in the Template editor search for </head>
          • Copy the below code and paste just above or before </head>
          <script type='text/javascript'>
          var thumbnail_mode = "no-float" ;
          summary_noimg = 430;
          summary_img = 340;
          img_thumb_height = 120;
          img_thumb_width = 120;
          </script>
          <script type='text/javascript' src='https://dl.dropboxusercontent.com/s/yao8g2f0ue0z0tk/bloggslab-auto-readmore-for-blogger.js' ></script>


          NOTE:
          • summary_ noimg= 430; – No. of characters in the post summary if no thumbnail image is available.
          • summary_img = 340;  - No. of characters in the post summary if there is an image in the post that’s to be used as the thumbnail.
          • null_thumb_height = 120; – Thumbnail height in pixels.
          • null_thumb_width = 120; – Thumbnail width in pixels.
          NOTE 2: If the post has no image only the post summary would be displayed.

          • Now search for <data:post.body/>
          • Replace <data:post.body/> with the below code
          <b:if cond='data:blog.pageType == &quot;item&quot;'>
          <data:post.body/>
          <b:else/>
          <b:if cond='data:blog.pageType == &quot;static_page&quot;'>
          <data:post.body/>
          <b:else/>
          <div expr:id='&quot;summary&quot; + data:post.id'>
          <data:post.body/>
          </div>
          <script type='text/javascript'>
          createSummaryAndThumb(&quot;summary<data:post.id/>&quot;);
          </script>
          <div style='clear: both;'/>
          <span class='rmlink' style='font-weight:bold;padding:5px;float:right;text-align:right;'><a expr:href='data:post.url' >Read more ... </a></span>
          </b:if>
          </b:if>
          NOTE: You can change Read more ...  with any text you’d like. For example you can use ‘Continue Reading; or ‘Read full Post".
          That’s it. Now save the template.

          Easily Add Stylish Tables into Blog Posts

          - Tuesday, 19 November 2013 No Comments

          adding stylish tables into blogger post using word

          Blogger post editor misses the option to insert tables into our blog posts. If you want to have comparisons or if you want to have a tabular display of items in your posts, you might find this as a great miss. Because inserting a table in blogger requires a little knowledge in HTML and CSS.  However MS Word has a solution. In this post you’ll see two methods for adding tables into blogger posts.


          First method is by using simple HTML code, which will add a simple table into your post. And in the second method, we’ll add a stylish table into your blog post using MS Word.

          METHOD 1 : USING SIMPLE HTML CODE

          This is the simplest method for adding tables into your blog post. You only just have to copy the below code and add it in the HTML section of your blogger post editor.

          <table cellpadding="0" cellspacing="10"><tbody>
          <tr>
          <td align="justify" valign="top" width="325">The write to be shown on the left side</td>
          <td align="justify" valign="top" width="325">The write to be shown on the right side</td>
          </tr>
          </tbody></table>

          OUTPUT

          Add Simple HTML tabel to Blogger post

          METHOD 2: USING MICROSOFT WORD

          To follow this method you’ll have to have Microsoft Word installed on your computer. If you haven’t you can download it here. If you have already installed it follow the below steps.

          STEP 1: Creating a table in MS Word

          Open MS Word and Navigate to Insert > Table

          creating a table in ms Word -snap 1

          Click on table and a grid will open up. Choose the number of columns and rows you want in your table. I’ve choosen a 3x3 table (i.e, 3 rows and 3 columns) for this tutorial.

          creating a table in ms Word -snap 3

          Now it’s time to stylify your table. Go to the Design tab and choose a design to apply to your table.creating a table in ms Word -snap 2

          You can further customize your table a lot. But I'm not going in to all those. After choosing a theme for your table, you can fill up your table with your desired content.

          creating a table in ms Word -snap 4

          Now you’ve successfully created a table in MS Word. We can now move on to the next step i.e, adding this table into our blog post.

          STEP 2: Adding the Table to our Blog Post

          First you’ve to save the above table in .html format. To do that, Choose File > Save as. In the window appearing choose Web Page, Filtered as the Save as type.

          adding ms word table into blogger post -snap 1

          I’ve save the document in my desktop for easy access, you can save it anywhere. Now we have to open the saved file in Notepad to copy the HTML code. To do that, right click on the saved file, and choose Open with > Notepad.adding ms word table into blogger post -snap 2

          You can now see the HTML code of the table you’ve created in the Notepad.adding ms word table into blogger post -snap 3

          Just copy the whole code from the Notepad and paste it directly in the HTML section of your blogger post editor. Be careful to add the code where your want the table to appear and only after writing the content of your post. Now just click publish your post. (read more on how to create a post in blogger)

          NOTE: The table created using MS Word might not appear in your blogger post editor. But don’t worry it’ll surely show upon your blog page.

          That’s it! You’ve successfully added a stylish table into your blog post using Microsoft Word.


          In this blog post, you learned two simple ways to add tables into your blog posts in blogger. The first one was by using simple HTML codes. In the second method, we added stylish table from Microsoft Word to our blogger post editor through two simple steps. Hope it was helpful Smile