Google Translate Widget with Flags For Blogger

The Google Translate Widget for Blogger allows the visitors to translate your site or blog in their own language.
This widget also auto-detect your blog language and then translate it to the readers chosen language.

It supports 12 different languages:
English, French, German, Spanish, Italian, Dutch, Portuguese, Russian, Japanese, Korean, Arabic And Chinese.
google translate for blogger, blogger gadgets, blogger tricks

How To Add The Google Translate Widget To Blogger

Step 1. Go to your Blogger Dashboard >> Layout and click on "Add A Gadget" link

Step 2. From the pop-up window, scroll down and choose HTML/JavaScript

 Step 3. Paste the code below in the empty box:

<script type="text/javascript">
function showHide(shID) {
    if (document.getElementById(shID)) {
        if (document.getElementById(shID+'-show').style.display != 'none') {
            document.getElementById(shID+'-show').style.display = 'none';
            document.getElementById(shID).style.display = 'block';
        else {
            document.getElementById(shID+'-show').style.display = 'inline';
            document.getElementById(shID).style.display = 'none';


 .google_translate img {
margin: 10px 20px 0px 20px;
    height: 24px;
    width: 24px;
        .google_translate:hover img {
        -moz-opacity: 0.30;
        opacity: 0.30;

.more {
    display: none;
a.showLink, a.hideLink {
    text-decoration: none;
    color: #0880C4;
    padding-left: 18px;
    background: transparent('down.gif') no-repeat left; }

a.hideLink {
    background: transparent url('up.gif') no-repeat left;
color: #0880C4;}

a.showLink:hover, a.hideLink:hover {
color: #0880C4;



 <a class="google_translate" href="#" target="_blank" rel="nofollow" title="English" onclick="''+encodeURIComponent(location.href)+'&langpair=auto%7cen&hl=en'); return false;"><img alt="English" border="0" align="absbottom" title="English" height="24" src="" style="cursor: pointer;margin-right:8px" width="24"/></a>

 <a class="google_translate" href="#" target="_blank" rel="nofollow" title="French" onclick="''+encodeURIComponent(location.href)+'&langpair=auto%7cfr&hl=en'); return false;"><img alt="French" border="0" align="absbottom" title="French" height="24" src="" style="cursor: pointer;margin-right:8px" width="24"/></a>

 <a class="google_translate" href="#" target="_blank" rel="nofollow" title="German" onclick="''+encodeURIComponent(location.href)+'&langpair=auto%7cde&hl=en'); return false;"><img alt="German" border="0" align="absbottom" title="German" height="24" src="" style="cursor: pointer;margin-right:8px" width="24"/></a>

 <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Spain" onclick="''+encodeURIComponent(location.href)+'&langpair=auto%7ces&hl=en'); return false;"><img alt="Spain" border="0" align="absbottom" title="Spain" height="24" src="" style="cursor: pointer;margin-right:8px" width="24"/></a><a href="#" id="example-show" class="showLink"
onclick="showHide('example');return false;">More</a>
<div id="example" class="more">
 <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Italian" onclick="''+encodeURIComponent(location.href)+'&langpair=auto%7cit&hl=en'); return false;"><img alt="Italian" border="0" align="absbottom" title="Italian" height="24" src="" style="cursor: pointer;margin-right:8px" width="24"/></a>

 <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Dutch" onclick="''+encodeURIComponent(location.href)+'&langpair=auto%7cnl&hl=en'); return false;"><img alt="Dutch" border="0" align="absbottom" title="Dutch" height="24" src="" style="cursor: pointer;margin-right:8px" width="24"/></a>
      <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Russian" onclick="''+encodeURIComponent(location.href)+'&langpair=auto%7cru&hl=en'); return false;"><img alt="Russian" border="0" align="absbottom" title="Russian" height="24" src="" style="cursor: pointer;margin-right:8px" width="24"/></a>

 <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Portuguese" onclick="''+encodeURIComponent(location.href)+'&langpair=auto%7cpt&hl=en'); return false;"><img alt="Portuguese" border="0" align="absbottom" title="Portuguese" height="24" src="" style="cursor: pointer;margin-right:8px" width="24"/></a>
<br />
 <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Japanese" onclick="''+encodeURIComponent(location.href)+'&langpair=auto%7cja&hl=en'); return false;"><img alt="Japanese" border="0" align="absbottom" title="Japanese" height="24" src="" style="cursor: pointer;margin-right:8px" width="24"/></a>

 <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Korean" onclick="''+encodeURIComponent(location.href)+'&langpair=auto%7cko&hl=en'); return false;"><img alt="Korean" border="0" align="absbottom" title="Korean" height="24" src="" style="cursor: pointer;margin-right:8px" width="24"/></a>

 <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Arabic" onclick="''+encodeURIComponent(location.href)+'&langpair=auto%7car&hl=en'); return false;"><img alt="Arabic" border="0" align="absbottom" title="Arabic" height="24" src="" style="cursor: pointer;margin-right:8px" width="24"/></a>

 <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Chinese Simplified" onclick="''+encodeURIComponent(location.href)+'&langpair=auto%7czh-cn&hl=en'); return false;"><img alt="Chinese Simplified" border="0" align="absbottom" title="Chinese Simplified" height="24" src="" style="cursor: pointer;margin-right:8px" width="24"/></a>
    <p><a href="#" id="example-hide" class="hideLink"
    onclick="showHide('example');return false;">Hide / </a><a href=""><font size="1px">Get this widget</font></a></p>

Step 4. Now click on Save

google translate, blogger widgets, gadgets for blogspot
And you're done! Enjoy (:

Simple Recent Posts Widget for Blogger/Blogspot

The main advantage on this Recent Posts widget is that it will show not only post titles but also post excerpts or snippets and it's easy to customize/ apply different style on it. To style it into your own design, you just have to modify the CSS style - you can change the link or background color, the size and color of text/links.

What you can do with this widget:
  • display post titles only
  • change the number of posts
  • change the number of characters of the post snippet/excerpt
  • show the post dates

See the screenshot below:

How to add Recent Posts Widget to Blogger

Step 1. Log in to your Blogger Dashboard, then go to Layout and click on Add a Gadget link

Step 2. From the pop-up window, scroll down and choose HTML/JavaScript

Step 3. Select & Copy the code from one of the options below and paste it into the new HTML/JavaScript:

Option 1: Recent posts widget with snippets

<div id="hlrpsa">
<script src="">
var numposts = 5;var showpostdate = false;var showpostsummary = true;var numchars = 100;var standardstyling = true;
<script src=";alt=json-in-script&amp;callback=showrecentposts">
<div id="rpdr" style="font-family: arial, sans-serif; font-size: 9px;">
<a href="" target="_blank" title="Grab this Recent Posts Widget">Recent Posts Widget</a> by <a href="" title="Recent Posts Widget">Helplogger</a></div>
<noscript>Your browser does not support JavaScript!</noscript>
<style type="text/css">
#hlrpsa a {color: #0B3861; font-size: 13px;} #rpdr {background: url( 0px 0px no-repeat; padding: 1px 0px 0px 19px; height:14px; margin: 5px 0px 0px 0px;line-height:14px;}
#rpdr, #rpdr a {color:#808080;}
#hlrpsa { color: #999999; font-size: 11px; border-bottom:1px #cccccc dotted; margin-top:-10px; padding-bottom:10px;}
.hlrps a {font-weight:bold; }
.hlrpssumm {}

Option 2: Recent Posts Widget Showing Post Titles Only

<div id="hlrpsb">
<script style="text/javascript" src=""></script>
<script style="text/javascript">var numposts = 10;var showpostdate = false;var showpostsummary = false;var numchars = 100;var standardstyling = true;</script>
<script src=""></script></div>
<div style="font-family: arial, sans-serif; font-size: 9px;" id="rpdr"><a href="" title="Grab this Recent Posts Widget" target="_blank">Recent Posts Widget</a> by <a href="" title="Recent Posts Widget">Helplogger</a></div><noscript>Oops! Make sure JavaScript is enabled in your browser.</noscript>
<style type=text/css>
#hlrpsb a {color: #0B3861; font-size: 13px;} #rpdr {background: url( ) 0px 0px no-repeat; padding: 1px 0px 0px 19px; height:14px; margin: 5px 0px 0px 0px;line-height:14px;}
#rpdr, #rpdr a {color:#808080;}
.bbrecpost2 {
border-bottom: 1px #cccccc dotted; }

Step 4.
  • Change 5 (option 1) and 10 (option 2) with the number of posts you want to display. 
  • Change false to true if you want the posts dates to appear 
  • Change 100 (option 1) if you want more characters to be displayed.
  • To change the color and font size of the links, modify the values in blue (links) and violet (font-size)
  • To change the style of posts summary, modify the values in green (color) and orange (font size)
  • Replace the your-blog text with the name of your blog or if you have a custom domain change all the bolded line with your address like in this example:

Step 5. Save your widget. And that's it! Enjoy!

If you need any help, leave a comment below.
And if you liked this post, please consider sharing it. Thanks.

A Beautiful jQuery Drop-Down Menu For Blogger Blogspot

Alright, this time, we are going to make a stylish and simple jQuery drop down menu. The main objective is to make it as simple as possible, with some little jQuery effect and easy to customize/ apply different style on it. To style it into your own design, you just have to modify the a tag CSS style. You can change colors or put background images, or the size and color of text.
jquery menu, menu blogger

Steps Adding the jQuery Drop-Down menu

Step 1. Go to Dashboard - Template - Edit HTML - Proceed

Step 2. Expand Widget Template (make a backup)
    jquery drop-dowm menu

    Step 3. Search for the following code:


    Step 4. Add the following CSS code before/above it:

    #jsddm {
    height: 40px;
    margin: 0;
    overflow: visible;
    z-index: 2;
    padding: 15px;
    #jsddm li {
    float: left;
    list-style: none;
    font: 12px Tahoma, Arial;
    #jsddm li a {
    display: block;
    white-space: nowrap;
    margin:1px 3px;
    border: 1px solid #AAAAAA;
    background: #cccccc;
    background: -webkit-gradient(linear, left top, left bottom, from(#ebebeb), to(#cccccc));
    background: -moz-linear-gradient(top, #ebebeb, #cccccc);
    padding: 5px 10px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    text-shadow: #ffffff 0 1px 0;
    color: #363636;
    font-size: 15px;
    font-family: Helvetica, Arial, Sans-Serif;
    text-decoration: none;
    vertical-align: middle;
    #jsddm li a:hover {
    background: #C8C8C8;
    #jsddm li ul {
    margin: 0;
    padding: 0;
    position: absolute;
    visibility: hidden;
    border-top: 1px solid white;
    #jsddm li ul li {
    float: none;
    display: inline;
    #jsddm li ul li a {
    width: auto;
    background: #CAE8FA;
    #jsddm li ul li a:hover {
    background: #A3CEE5;

    Step 5. Now find this piece of code:


    Step 6. Add this code immediately before/ABOVE it:

    <script src='' type='text/javascript'/>
      <script type='text/javascript'>
    var timeout    = 500;
      var closetimer = 0;
      var ddmenuitem = 0;
    function jsddm_open()
      {  jsddm_canceltimer();
      ddmenuitem = $(this).find('ul').css('visibility', 'visible');}
    function jsddm_close()
      {  if(ddmenuitem) ddmenuitem.css('visibility', 'hidden');}
    function jsddm_timer()
      {  closetimer = window.setTimeout(jsddm_close, timeout);}
    function jsddm_canceltimer()
      {  if(closetimer)
      {  window.clearTimeout(closetimer);
      closetimer = null;}}
      {  $('#jsddm > li').bind('mouseover', jsddm_open)
      $('#jsddm > li').bind('mouseout',  jsddm_timer)});
    document.onclick = jsddm_close;

    Step 7. Click on Save Template button.

    Step 8. Go to Layout > click on "Add a gadget" link

    Step 9. Choose HTML/JavaScript from the pop-up window

    Step 10. Paste the following code in the empty box:

    <ul id="jsddm">
      <li><a href="#">Home</a>
      <li><a href="#">Link 1</a>
      <li><a href="#">Drop 1-1</a></li>
      <li><a href="#">Drop 1-2</a></li>
      <li><a href="#">Drop 1-3</a></li>
     <li><a href="#">Link 2</a>
      <li><a href="#">Drop 2-1</a></li>
      <li><a href="#">Drop 2-2</a></li>
     <li><a href="#">Link 3</a>
      <li><a href="#">Drop 3-1</a></li>
      <li><a href="#">Drop 3-2</a></li>
      <li><a href="#">Drop 3-3</a></li>
      <li><a href="#">Drop 3-4</a></li>
     <li><a href="#">Link 4</a></li>
      <li><a href="#">Link 5</a></li>
      <li><a href="#">Link 6</a></li>

    Note :

    You must change links titles and replace the # symbol with the URL address of each of your links

    Step 11. Click on Save


    - if your menu is on the sidebar, or footer, just drag it to your page header and click and click Save again.
    - if drop down links are not showing, do the following:

    Go back to Template > Edit HTML and search (CTRL + F) for this code:

    <b:section class='header' id='header' maxwidgets='1' showaddelement='no'>

    You should change 1 with 3 and no with yes like this:

    <b:section class='header' id='header' maxwidgets='3' showaddelement='yes'>

    Save the Template.

    Next thing to do is to go to Layout and drag your menu immediately below your header

    Then click on Save Arrangement

    Here you can see the DEMO.

    Enjoy! :)

    How to Add Emoticons/Smileys in Blogger Comments

    Emoticons/Smileys are a great way of making discussions more interesting and fun, so it's a pity that Blogger don't support them. This tutorial will show you some simple steps on how to add some very cute emoticons called Kolobok to your Blogger/Blogspot comments, so that you and your blog visitors will be able to have an enjoyable time together.

    Now available for threaded commenting system too!
    emoticons in blogger, kolobok smileys, threaded comments

    How To Add Kolobok Smileys In Blogger Comments

    Step 1. Go to Dashboard - Template - Edit HTML - Proceed

     Step 2. Expand Widget Template (make a backup)

      Step 3. Search (CTRL + F) for this tag:


      Step 4. Copy and paste just above it, this code:

      • For previous commenting system (comments without reply option)
      <script src='[]smileys.js' type='text/javascript'/><noscript><a href='' target='_blank'><span style='font-size: x-small;'>Add emoticons</span></a></noscript>

      • For threaded commenting system (comments with reply option)
      <script src=' threaded.js' type='text/javascript'/>

      Note: ignore steps 5-8 if you are using threaded comments!

      Step 5. Now find this code snippet:

      <b:loop values='data:post.comments' var='comment'>

      Step 6. Paste the following code just above it:

      <div id='smileys'>

      Step 7. Find the following code (look carefully, it should be somewhere below the code from step 5)


      Step 8. Paste the following tag just after it:


      Step 9. Now find this code:

      • For previous commenting system:

      Note: if you'll find it like 4 times, stop to the 2nd one!

      • For threaded commenting system:
      <div class='post-footer-line post-footer-line-3'>

      Step 10. And add this code just after it:

      <b:if cond='data:blog.pageType == &quot;item&quot;'><script type='text/javascript'>
      function moreSmilies() {
          document.getElementById('smiley-more').style.display = 'inline';
          document.getElementById('smiley-toggle').innerHTML = '<a href="javascript:lessSmilies()"><div style="font-size:small; font-weight:bold;color:#000000;">Hide Emoticons /<a href="">Add Emoticons</div></a></span>';
      function lessSmilies() {
          document.getElementById('smiley-more').style.display = 'none';
          document.getElementById('smiley-toggle').innerHTML = '<a href="javascript:moreSmilies()"><div style="font-size:small; font-weight:bold;">Show Emoticons</div></a>';
      <div class='emoticons'>
      <span id='smiley-more' style='display: none;'>
      <img src=''/>:)
      <img src=''/>:(
      <img src=''/>:))
      <img src=''/>:((
      <img src=''/>=))
      <img src=''/>=D&gt;
      <img src=''/>:D
      <img src=''/>:P
      <img src=''/>:-O
      <img src=''/>:-?
      <img src=''/>:-SS
      <img src=''/>:-f
      <img src=''/>d(
      <img src=''/>:-*
      <img src=''/>b-(
      <img src=''/>h-(
      <img src=''/>g-)
      <img src=''/>5-p
      <img src=''/>y-)
      <img src=''/>c-)
      <img src=''/>s-)
      <img src=''/>d-)
      <img src=''/>w-)
      <img src=''/>:-h
      <img src=''/>:X
      <span id='smiley-toggle'><a href='javascript:moreSmilies()'><div style='font-size:small;font-weight:bold;'>Show Emoticons <img src=''/></div></a></span>

      Note: Ignore steps 11-12 if you are using threaded comments!

      Step 11. Finally, find this code


      Step 12. Add this one below, just above ]]></b:skin>

      .emoticons {-moz-background-clip: -moz-initial;-moz-background-origin: -moz-initial;-moz-background-inline-policy: -moz-initial;text-align: left;width:400px;}
      .emoticons a, .emoticons a:hover {margin-left: 20px;text-decoration:none;}

      Note: if you want to change the size of the emoticon container, edit the red code.

      Step 13. Save the Template and you're done. Enjoy!

      If you have any problem and need help, please leave a comment below.

      How To Add or Change Favicon on Blogger Blogspot

      Favicon (Favorites Icon) is the small picture (usually 16px x 16px in size) you see beside some some site's name in your browser's address bar. Having your own favicon with a nice graphical reminder of your site beside is a good way to get visitors attention. Blogger users can add a custom favicon for their blogs going to the Layout section  and by clicking on the Edit link on the "Favicon" element.

      "For many bloggers, having a custom favicon (the tiny image displayed in your browser’s window or tab) is the finishing touch that ties together the design and identity of a great looking blog. Today, we're pleased to announce that Blogger in Draft users can now add a customized favicon to their blog. ~Blogger in Draft"

      How To Add a Favicon to Your Blogger Blog

      Step 1. Log in to your Blogger's Dashboard, go to the Layout and click on Add a Gadget link

      Step 2. Click on the "Edit" link on the "Favicon" setting above the navbar element.

      Step 3. A popup window will open where you can search for an image in your hard drive to replace the default favicon image. Click on "Browse" button and search for your favicon (it should have the .ico extension) - then click on "Save".

      Step 4. Now you should see your own favicon instead of blogger's default favicon.

      It might take some time until your new favicon will appear in your Browser's tab or window.

      If you want to add animated favicons to your Blogger blogs, then follow this method below.

      How to add an animated favicon in Blogger

      Step 1. Log in to your Blogger account > Template > Edit HTML (if needed, click on Proceed button)

      Step 2. Select the "Expand widget templates" box

      Step 3. Search (CTRL + F) for:


      Step 4. Paste this code just above it:

      <link href="your-favicon-links-goes-here" rel="icon" type="image/gif"/>

      See the screenshot for more details
      animated favicon blogger, how to

      Note: replace your-favicon-links-goes-here with your favicon's link location

      You can choose from here some cool favicons for your site/blog: (just download the favicon you like - upload it on tinypic or on a blogger's post, then copy the link address/direct link)

      Step 5. Save the Template. And you're done!

      How to number comments in Blogger/BlogSpot

      This Blogger hack will show you how to add comment count inside a speech bubble, so that you & your readers can use the numbers to mention or point to a particular comment on any of your posts and besides this, it could as well improve the look and feel of your blog.

      Note: This works with the previous blogger commenting system, so if you want to add this hack, you should remove first the Blogger threaded comments. Learn here How to remove Blogger threaded comments

      UPDATE! Now you can add comment bubble in your threaded comments too. Read this tutorial:
      How to Add Numbered Comments In Threaded Comments
      blogger blogspot, tricks

      How to add numbered comments on our Blogger/Blogspot blog
      how to blog, blogspot blogger

      Step 1. Go to Dashboard - Template - Edit HTML (click on Proceed button, if needed)

       Step 2. Select "Expand Widget Template" (make a backup)

        Step 3. Now find (CTRL+F) the following code in your template:

        <b:loop values='data:post.comments' var='comment'>

        Step 4. Immediately above/before it, paste this code:

        <script type='text/javascript'>var CommentsCounter=0;</script>

        Step 5. Find this code:


        Step 6. And immediately below/after it, copy and paste this:

        <span class='comments-number'>
        <a expr:href='data:comment.url' title='Comment Link'>
        <script type='text/javascript'>

        Step 7. Find (CTRL+F) this tag in the template:


        Step 8. Paste this code just above/before it:

        <!-- comments-count-starts-->
        <style type="text/css">
        .comments-number a:link, .comments-number a:visited {
        color: black !important;
        text-decoration: none !important;
        background: url( no-repeat;
        width: 50px; /*image-width size*/
        height: 48px; /*image-height size*/
        float: right;
        display: block;
        margin-right: 5px;
        margin-top: -15px; /*comments-counter position*/
        text-align: center;
        font-family: 'Century Gothic','Lucida Grande',Arial,Helvetica,Sans-Serif;
        font-size: 15px;
        font-weight: normal;
        .comments-number a:hover, .comments-number a:active {
        color: #1BA0E1 !important;
        text-decoration: none !important;
        <!-- comments-count-stops->

        • To change the comment bubble, replace the red text from above with your own address
        • To change the color of the numbers, replace the blue text with the hex value of your color

        Comment Bubbles 

        To choose a comment bubble, right-click on the image and select "Copy Image Address/Location":

        how to blogblogger blogspotblogspot blogger, how to blogwidget blogger blogspotblogs, how to blogblogspot or blogger, how to blogtutorials, how tocomments, how to, blogspot bloggernew comment, how to blogblog design,

        IMPORTANT: You could use any image instead of the one linked in the code above (STEP 8) but after that, you should modify the size values (width and height), so that the numbers inside the bubble to be correctly adjusted.

        Step 9. Save the template... and enjoy your comments :]

        You might also be interested in this tutorial from the same category:
        How to Add a Comment Bubble to Blogger Post Titles.

        How to Add A Comment Count Bubble To Blogger Post Titles

        A comment bubble with current number of comments displayed to each blogger post titles could make your blog more attractive. This improves not only your comments count but also allows your visitors to see what are the most popular posts on your blog. When a post has many comments, then the comment bubble will show the popularity of your posts to readers and visitors so that they might be more interested in reading them.

        So let's start adding it:

        Step 1. Go to Dashboard - Template - Edit HTML (click on Proceed button, if needed)

        Step 2. Select "Expand Widget Template" (make a backup)

          Step 3. Find - using CTRL + F - the following piece of code in your template:


          Step 4. Add the below code just above ]]></b:skin>:

          .comment-bubble {
          float : right;
          width : 48px;
          height : 48px;
          background : url(;
          background-repeat: no-repeat;
          font-size : 18px;
          margin-top : -15px;
          margin-right : 2px;
          text-align : center;

          Step 5. Now find this code:

          <b:if cond='data:post.title'>
          <h3 class='post-title entry-title'>

          Note: If you can't find it, search this code instead:

          <b:if cond='data:post.title'>
                <h3 class='post-title entry-title' itemprop='name'>

          Step 6. And add this code immediately after it:

          <b:if cond='data:post.allowComments'>
          <a class='comment-bubble' expr:href='data:post.addCommentUrl' expr:onclick='data:post.addCommentOnclick' style='color: #ffffff; font-size: 18px; font-weight: bold;'><data:post.numComments/></a>

          • to change the color of the comments number, replace #ffffff with the hex value of your color;
          • to change the font size, increase/decrease the 18px value;

          Step 7. Preview your template and if everything is ok, click on Save Template.

          Comment Bubbles 

          You can choose one of the images below - right click on the desired image and select "Copy Image Address/Location", then replace the red code from step 3 with the address you just copied.

          bubble comment count, bubble blogger postsblogger comments, comment countblogger blogspot, blogger commentsblogger bubble comment countcomments in blogger titlesblogger tips, blogger tricksblogger widgets, bubble comment countbubble comment countBubble Comment CountBubble Comment Count, blogger blogspot

          That's it! Enjoy (:

          You might also be interested in reading this tutorial: