Monday, 4 June 2012

How to Create Drop Caps (Big First Letters) in Blogger/Blogspot

Here's another way to customize your Blog. In this case, your Posts and Comment's first letter. The effect is a large first letter stretching down three or four lines with the text wrapped around. The drop cap letter can also use a different font and have a different color from the rest of the text. This style can be often seen in newspapers, literature, magazines. So, in this tutorial I will show you how to apply automatically a Magazine text style on Blogger Posts and Comments. Let's start adding it...

-> Add Drop Caps For Blogger Posts

drop caps, blogger blogspot, tutorials

-> Add Drop Caps For Blogger Comments

drop caps, first letter, blogger

Big First Letter for your Blogger / Blogspot Posts


Step 1. From your Blogger Dashboard, go to Template and click on the Edit HTML button:


Step 2. Click anywhere inside the code area and press the CTRL + F keys to open the Blogger' search box. Type this piece of code inside the search box then hit Enter to find it:
]]></b:skin>
Note: you might need to click on the arrow next to it to expand the code within and then you need to search ]]></b:skin> one more time.

Step 3. Just above ]]></b:skin>, add the following CSS code:
.capital:first-letter {
float: left;
display: block;
font-family: Times, serif, Georgia;
font-size: 40px;
color: #000000;
margin:0px 5px 0 0;
padding:0 0 0 10px;
}
Color - change the value in blue with the hex of your color
Size - to change the letter size, increase/decrease the value highlighted in pink.

Step 4. Now search for this code:
<data:post.body/>
Step 5. Then immediately before and after add the red fragments you see in the example below:
 <div class='capital'><data:post.body/></div>
Step 6. Save the changes by clicking on the Save template button.

Important! If the above code is not working, add one of following codes from this example:
<p class="capital"><data:post.body/></p>
Or try this instead:
<span class="capital"><data:post.body/></span>

Big First Letter For Blogger/Blogspot Comments

Step 1. Log in to your Blogger account > go to Template > Edit HTML > click anywhere inside the code area and press CTRL + F keys to open the search box

Step 2. Type the following piece of code inside the search box and hit Enter to find it (if you have already added this code, skip step 2 & 3):
]]></b:skin>
Step 3. Add the following code just above ]]></b:skin>:
.capital:first-letter {
float: left;
display: block;
font-family: Times, serif, Georgia;
font-size: 40px;
color: #000000;
margin:0px 5px 0 0;
padding:0 0 0 10px;
}
Color - to change the letter color, replace the value in blue with the value of your color. Here's a tool that might help you to find the hex of the color that you need: Color Code Generator
Size - to change the letter size, change the value in pink.

Step 4. Then Search for this piece of code:
<data:comment.body/>
Step 5. Add the red codes before and after <data:comment.body/> as you can see in my example below:
<p class="capital"><data:comment.body/></p>
Step 6. Save your Template.

That's it! Now you have a cool drop cap first letter on your blog. If you have any question, leave a comment below!

Saturday, 2 June 2012

Numbered comments on threaded comments for Blogger/Blogspot

In a previous tutorial you've seen how you can add numbered comments to your blogger blog, unfortunately, this trick worked only for those who don't have the reply option and are still using the old blogger commenting system. But we won't have any problem this time because this tutorial will show you how to add numbered comments with comment bubbles on the threaded comments, as well ;)

What the following CSS trick will do for you:
  1. When the general block of comments is initiating (.comments-content) a counter called countcomments activates and starts with an initial value of 1. 
  2. Then, each time the code flow goes through a review of any level, either the original comment or a reply (.comment-thread li), it will bring us in front (:before) of the comment's body the number that is the counter.
  3. Finally, this is incremented in the counter (counter-increment).
See the screenshot:
count comments, comment bubble, forum, blogger

Isn't that great? I'm pretty sure many of you have been waiting for this cool trick. So, let's begin applying it for our threaded commenting system.

Steps to add bubble comments count

Step 1: From your Blogger Dashboard, go to Template and click on the Edit HTML button:

    ... click anywhere inside the code area and press CTRL + F to open the Blogger' search box.

    Step 2: Type the following tag inside the search box and hit Enter to find it:
    ]]></b:skin>
    Note. you have to click on the arrow next to it, then search the ]]></b:skin> one more time 

    Step 3: Add the following code just above ]]></b:skin>:
    .comment-thread ol {
    counter-reset: countcomments;
    }
    .comment-thread li:before {
    content: counter(countcomments,decimal);
    counter-increment: countcomments;
    float: right;
    z-index: 2;
    position:relative;
    font-size: 22px;
    color: #555555;
    padding-left:10px; 
    padding-top:3px; 
    background: url(
    https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjvqVEhmDyyqqwEscYe3N0w_Qe2-uTrAIWsZHVh6B0n5bnfGnAXRc1KrJHPkAeY7aW2ogLytOexfYh49qVfALlOc1HuUty_2E374t4e2NQAjIOEvvoymDtJfkSwfqMp2wlN31ppSu7D_Cg/s1600/comment+bubble2.png) no-repeat;
    margin-top:7px; 
    margin-left:10px; 
    width: 50px; /*image-width size*/
    height: 48px; /*image-height size*/ 

    }
    .comment-thread ol ol {
    counter-reset: contrebasse;
    }
    .comment-thread li li:before {
    content: counter(countcomments,decimal) "." counter(contrebasse,lower-latin);
    counter-increment: contrebasse;
    float: right;
    font-size: 18px;
    color: #666666;
    }
    Note:
    • if you want to have no bubble icon, remove the code in red (including the address in blue)
    • to change the comment bubble, replace the code in blue with the URL address of your own icon. If you're not sure what icon you should use, you can find some cool icons in my previous posts (see these tutorials here and here)
    • to change the position of comments count, increase/decrease the values (3 & 10) from padding-top and padding-left
    • to change the position of comments bubble/icon, change the values (10 & 7) from margin-left and margin-top
    Step 4: Now Save the Template and you're done!

    If you enjoy reading this blog, please share and subscribe. For any questions you may have, leave a comment below.

    Thursday, 31 May 2012

    Add Floating Social Media Sharing Buttons To Blogger

    The Floating Social Media Sharing is a very popular widget on all the top blogs and this is one of the ways to increase the number of times your posts get shared on Twitter, Facebook and other social networks.

    This floating social bar has the following options: Facebook Like, StumbleUpon, Twitter Share, Digg This, Google+ and each of them comes with a live counter. You can add more sharing buttons or social bookmarking icons later if you want.

    Blogger, WordPress, Facebook, Share

    How to add the scrolling social bookmarking bar


    Step 1. Log in to your Blogger Dashboard, select your blog and go to Layout 

    Step 2. Click on Add A Gadget link


    Step 3. From the pop-up window, scroll down and select HTML/Javascript 

    Step 4. Copy the code below and paste it inside the empty box.

    Step 5. Save the gadget.

    The code to copy-paste (updated!):
    <style type="text/css">
    #social-buttons {
    position:fixed;
    bottom:15%
    margin-left:-721px;
    float:left;
    border-radius:5px;
    -moz-border-radius:5px;
    -webkit-border-radius:5px;
    background-color:#fff;
    padding:0 0 2px 0;
    z-index:10;
    }
    #social-buttons .button-share {
    float:left;
    clear:both;
    margin:5px 5px 0 2px;
    }
    </style>
    <div id='social-buttons' title="Get this from helplogger.blogspot.com">
    <div class='button-share' id='like' style='margin-left:7px;'>
    <div id="fb-root"></div>
    <script>(function(d, s, id) {
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) return;
      js = d.createElement(s); js.id = id;
      js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
    <div class="fb-like" data-send="false" data-layout="box_count" data-width="40" data-show-faces="false"></div>
    </div>
    <br /><div class='sbutton' style="margin-left: 2px;" ><a class='twitter-share-button' data-count='vertical' data-via='Helplogger' expr:data-counturl='data:blog.url' href='http://twitter.com/share' rel='nofollow'>Tweet</a><script src='http://platform.twitter.com/widgets.js'; type='text/javascript'></script>
    <br />
    <div class='button-share' style="margin-left: 3px;" id='su'>
    <script src="http://www.stumbleupon.com/hostedbadge.php?s=5"></script>
    </div>
    <div class='button-share' id='digg' style='margin-left:3px;width:48px'>
    <script src='http://widgets.digg.com/buttons.js' type='text/javascript'></script>
    <a class="DiggThisButton DiggMedium"></a>
    </div>
    <div class='button-share' style='margin-left:3px;' id='gplusone'>
    <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
    <g:plusone size="tall"></g:plusone>
    </div>
    <div style="clear: both;font-size: 9px;text-align:center;">Get <a style="color: #3399BB;" href="http://helplogger.blogspot.com/">widget</a></div></div></div>
    Customization:
    • Vertical alignment - Change the 15% value of bottom. The code positions the social bar relative to the bottom of your browser window. To fix the distance even when window is resized, specify the value in px (pixels) instead of %.
    • Horizontal alignment - Change the -721px value from margin-left. Negative value pushes the button to the left of the main blog column, positive value pushes it to the right. Increase or decrease the value based on your needs.
    • Twitter setting - Replace Helplogger with your Twitter username
    • Replacing and removing buttons - You can replace existing buttons with your own. Each button is represented by this code:
    <div class='sbutton'> BUTTON CODE HERE </div>
      Enjoy!!! :)

      Create A Rollover Image Effect (change image on mouseover)

      The Rollover effect is one in which an image web object changes (swaps itself) on mouse over to another web object (called rollovers) and reverts back to the original image on mouse out. Rollover images are preloaded into the page when it is loading, this ensures that the rollovers are displayed quickly. The onMouseOver and onMouseOut attributes of the link tag are used to make this functional.

      Demo:  Place your mouse over the image below to see its rollover effect


      Making Rollover Effect Image

      You have the following code:

      <a href="URL ADDRESS"><img src="URL OF THE FIRST IMAGE GOES HERE" onmouseover="this.src='URL OF THE SECOND IMAGE GOES HERE'" onmouseout="this.src='URL OF THE FIRST IMAGE GOES HERE'" /></a>

      Change the colored texts as it follows:

      1. URL ADDRESS

      This is the address where somebody will be sent when clicks on the image.
      Example, my blog address: http://www.helplogger.blogspot.com

      2. URL OF THE FIRST IMAGE GOES HERE

      Replace the orange text (two times) with the URL address of the image which will appear before you hover over it.

      3. URL OF THE SECOND IMAGE GOES HERE
      Replace the text in blue with the url of  the image that will appear when the cursor hovers over it.

      Now you can paste your image inside a blog gadget, going to Layout > click on Add a Gadget link (right side) > Select HTML/JavaScript from the pop-up window, then add it to your sidebar.

      You can also add it inside your post by going to New Post > Switch to HTML tab and then paste the code in the empty box.

      That's it. Enjoy ;)

      Saturday, 12 May 2012

      Add Facemoods Emoticons To Your Blogger Comments

      Here are some amazingly funny emoticons compatible with your Blogger comments - also with threaded commenting system! If you want to know how to add them, just follow the next steps:

      emoticons, smileys, blogger, tricks

      Step 1. From your Blogger Dashboard, go to Template and click the Edit HTML button


      ...click anywhere inside the code area and press CTRL + F to open the search box:

      Step 2. Type or paste one of the below lines inside the search box, then hit Enter in order to find it:

      • For previous commenting system: 
      <h4 id='comment-post-message'><data:postCommentMsg/></h4>
      • For threaded comments:
      <div class='post-footer-line post-footer-line-3'>

      Step 3. Add the below code just above it

      (for threaded comments, add the code after):
      <b:if cond='data:blog.pageType == "item"'>
      <div style=' width: 450px; text-align: left; border: 1px dashed #0084ce; background: transparent; padding: 10px; color:#000000; font-weight:bold; '>
      <img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9FMlT6BwTAlhzLXQAyh0v7LYlVwOGGNpq0keQ-sgHyBKDhW20VpTJ-wKVNtaI5PlpijY8mu7Zun-yFDOJ4KT1IfF4-eJ-eqY6GShZt3019wmYVF_VOpTO0ej373BIzSqkUnBWCb4A5BIf/s1600/helplogger.blogspot.com(1).gif'/> :a
      &#160;
      <img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBSv_70RUp-CFT2OeqCOTWZeYxpeJgB99m7__Ts0GLps9imCu18FbgFRqWbDJv11UgTwVgPYCPO7HIRJAbnXjibbvipX-LG2Qvk0qBWjk96C-kL1Hvh8CnpOhbH_zzW5o83QdGtv6Ie4wN/s1600/helplogger.blogspot.com+(2).gif'/> :b
      &#160;
      <img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyALcNCaKlBnTQ6FSoKs9zFX3U976H7K410B3gzecpyOWEAAYKBOZQJGuTu4J6aatbP6Vf1Izy3ohaqrTBrFC_LF33kSb-g1HUWF6ev6w8qG_L3ya9mwL72bq5CUipnyj1K7xxhcS6xeK3/s1600/helplogger.blogspot.com(3).gif'/> :c
      &#160;
      <img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaU5WpCeGM5cbL3bvPQl2zdma-eBssR6dVUu-ZCI3L_Mj5upqyB683ixGL4ApEaL242_CKl3P-vXsAEIflY76kEkASNhJ0YqWDgPVxTTlHGQVA8RLSjHIqwqynNDjwzpaPg8FNFf1c9jDD/s1600/helplogger.blogspot.com(4).gif'/> :d
      &#160;
      <img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiVe9rwaHcaNTh1j5IYhByhDxjgXoKJzmCPmR2t9SeLBmJ9Sv99FUjEglDByR_-B7eCeZeX1rgJLBDb3rnzQzeQ0C6MuNTUFw9wln0P0fKzAlmsxLaIz0zT6Dxn9JikXQyS3ts_O-NJJz1i/s1600/helplogger.blogspot.com(5).gif'/> :e
      &#160;
      <img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEij_1D1AS_syd7RCIm-jmDGLt0uZazPB5HrHuVZqrwWccbd1lBGJp1l9MCbWOu4yEY1ryzSM8FzQyyeif8NX41O3fabrg8GE0VGuncv9emP1uXYAiLs1X109Dd4EqOwhQyrX3wKHub2OTPE/s1600/helplogger.blogspot.com(6).gif'/> :f
      &#160;
      <img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlCGrDInwwW8iv_BnzY87R1KcvDQtBU5ucagaLOIhzmhP57BQMrW1bn3pR7-2j6EDQXVvIwphEqrtPN3u3qINB5Lt-G06NfnVeD8cjlZwegOoQ8ZRtT_x7K1pD9HMZgLwq7d4Ab8GglpaI/s1600/helplogger.blogspot.com(7).gif'/> :g
      &#160;
      <img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVyHyre_UXOVLplW0KiJxwol_0xN2qSsGZhInYFUWXxa5DHXBcqSl9iX3PCfZXuYHH3SDHW_hzDzRoKs_pKw_4Dfu7SZcdA15_rSJs0c7jvFZ_Mk3BDGHIy-G_CbAWwTWLazIcDFuX8KeG/s1600/helplogger.blogspot.com(8).gif'/> :h
      &#160;
      <img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3_6wcGumGY3XCg0_douWcUeBVhJ0QBwNxlCJMLWfgq04gPBXN-9rCM0SOtFNaiaKz9AKOqEsG9kTIK3SDoscHeaps9CQLrk3-xAyxu0BmCNy_0E48D4AZ8u-l-TB51u6klYotrTH5BA96/s1600/helplogger.blogspot.com(9).gif'/> :i
      &#160;
      <img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKXJsswD72aftjvcTsAyc6mSzhAvrHu4fjKd-XHKCMaImm_kIU8CwZzdXEfwPrGGZ2VFTtwmWELYujeueI0MfteycNODp7uTDhsecVFVnnS9j8Y7o7-nGjZMn278rKxQh1c_pSZ7uHjLQr/s1600/helplogger.blogspot.com(10).gif'/> :j
      &#160;
      <img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZjAYACYyYIby-eR9gNh0EOExupZ_3H78DdaZBgMTjLSnApf5PPIX5MCFBJnDPn8fhDz7VWsOaRO1ixJxhFYqDKTNEYlTvsumv9kRuvw8jbNnxT9PGklZC3QIfNyINyFtiHd2xWAGCelA4/s1600/helplogger.blogspot.com(11).gif'/> :k
      &#160;
      <img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJjL3VA8HitQu-TfVxlLMuC_MRYD9LP5sjBdgzdkwln6s4bxtqeKpfiBH-hlptbawhuKdBKc7L5LkQJ9sJeqMdhBmnuKpzrye87P2MTQTafyxMpsvrzkheAM1ZJSO8eNwPqa0JZLTHf71z/s1600/helplogger.blogspot.com(12).gif'/> :l
      &#160;
      <img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOoDt3fVeoew0BVbYnXBVKkRgmBHZ79RahQh9AjPmZShbsCUDWGHabtaMPyCeEvdsRYBwrO6I1Pz_6ZEdgtozYZ_XIFvZJ0yB2Tn-vCJsI_usdWtTsg20ckC-FndOPaXHGOl1KKvczQHFu/s1600/helplogger.blogspot.com(13).gif'/> :m
      &#160;
      <img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjb40LS7TH3ruLaXf0h2l6neD5iWc6vt84kZbRTn9d4xhhK6_A2Pujl2hG9TO2MHQo-uYYNWMOSeZRLinqjkg_EaSHrjfgIR80FXkdnEX1eIHr_Sl_w8gtEdSaCxQhERLMwlvnO82HX3opr/s1600/helplogger.blogspot.com(15).gif'/> :n
      &#160;
      <img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNQQaGvPPdNCSJ_uq1Cn9MfOL8LjtaMGk0nZ1RpVi7Un42YZD2-Y_3HyBgWqmR_7gJcDbp1mmzlEyO4jQilD4149EmRiyZ-j92uLvx3LA-Skf3pYPdzymotKS8fJATBHfkwExzzDbFtJa9/s1600/helplogger.blogspot.com(16).gif'/> :o
      &#160;
      <img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi01ibKYLuWLAsoZmm9sC8MOTrGg7n6RGDZKhUwNovGwjVpd3tXUr2sqxhp-eqL6Hm4wfyDkVOv9rWPvsmebjefY0C5OU9_XMJ5JJPyT0sXr65sF_Ea_l8hUNK5OIl5mFDcIq7QiZw6Wani/s1600/helplogger.blogspot.com(14).gif'/> :p
      &#160;
      <img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijQZEu_E1JaOL_UEGeFA0yn1DOR99YvvJCAWB72A7EPAalHs60JpwJURU0IY7__B1aY2comQEme97-8ejop8UKQ1p5JF05J2Sqgm6TzmcqcVIWNzz4tW5LEJ6dI72_sO2guL3UhnpX-MQi/s1600/helplogger.blogspot.com(17).gif'/> :q
      &#160;
      <img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmwz3f7vdAS5hxrL1ou7fUOuZooEkwJjoLE_yLHnzfVFP2mbxtIZlKrlI-lY01zKP9UUYbbfb1YGC8Y4R0Dd22fVrMIA_GAw_yteTAJAdaIAQgB_sKrQfozath5U0gbKq9ZF-UaahB5KRq/s1600/helplogger.blogspot.com(18).gif'/> :r
      &#160;
      <img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEielOVcVftwEojt4cmFRj_o4O5MVMl8t6vwNrmqCyBPK05dh_y04qmd1ND5k1gjwsui4kt7xAcDjv-7TXHf1K_kOFwdZ6Tt_-R-9wZz7Q_uzhZonMSbKWp5uahI7mVQ0XJWSx3hArEklpbF/s1600/helplogger.blogspot.com(19).gif'/> :s
      &#160;
      <img border='0' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjBI9CnKBh7P-XGzHqIGMEJ2nqVrOjfgWoNAo_XeQJVrDn3XYG6wIXxzdN4tCd2tKN31n7D4TVc1xkpWC6UGvYP2V57P9DWzJMOz2G4gDhb6D6VHVDeJ6vieNQOqHCyyz0pySvgLouKudqf/s1600/helplogger.blogspot.com(20).gif'/> :t   <a href='http://helplogger.blogspot.com/2012/05/add-facemoods-emoticons-to-your-blogger.html' style='color: rgb(30, 122, 183); font-size: x-small;'>Add smileys to Blogger + </a>
      </div></b:if>
      Step 4. Now search for this piece of code:
      </body>
      Step 5. And add the following code immediately above it:

      • For previous commenting system:
      <script type='text/javascript' src="http://helplogger.googlecode.com/svn/trunk/facemood emoticons.js"/>
      • For threaded comments: 
      <script type='text/javascript' src="http://helplogger.googlecode.com/svn/trunk/facemood emoticons threaded.js"/>
      Step 6. Save the Template and hopefully, now you can enjoy commenting by adding these cool emoticons.

      Sunday, 6 May 2012

      How to Change Default Anonymous Avatar in Blogger Comments

      Earlier, you've seen how you can change the size of the avatars in blogger comments and now I will show you how to change or customize the default avatar of anonymous commenters or Blogger users with no picture on their profiles. While Blogger announced the new threaded commenting system, we can still customize it by adding a jQuery plugin to our template and then replace the default anonymous avatar that can be found on this address: http://img1.blogblog.com/img/anon36.png and the one for blogger users: http://img2.blogblog.com/img/b36-rounded.png ...with our own.

      anonymous, default avatar, blogger blogspot

      Replace the Default Anonymous Avatar on Blogger Comments


      Step 1. Go to Dashboard - Template - click on the Edit HTML button


      ...click anywhere inside the code area and open the template search box by pressing the CTRL + F keys

      Step 2. Type or paste this code in the search box, then hit Enter to find it:
      </body>
      Step 3. Just above the </body> tag, add the following code:
      <script src='http://code.jquery.com/jquery-latest.js'/>
      <script>
      $(&quot;img[src=&#39;http://img1.blogblog.com/img/anon36.png&#39;]&quot;)
      .attr(&#39;src&#39;, &#39;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNbwWCul_lF3drU_FwRQksMYLkD4hyphenhyphenhdJMDiji094vbmQSqW4FJyE38NlY-EY1BQYGoYUhhXga9TkavXJ36OgbpjQPPZqg0bbGim6hhcj3fqcvjBp_fI7t81z-eNl-O42a2YKBHekKjdw/s1600/default_avatar.gif&#39;)
      .ssyby(&#39;blank&#39;)
      </script>
      <script src='http://code.jquery.com/jquery-latest.js'/>
      <script>
      $(&quot;img[src=&#39;http://img2.blogblog.com/img/b36-rounded.png&#39;]&quot;)
      .attr(&#39;src&#39;, &#39;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEheddNmRcA19RVfNqCD2GifutLUvTkg5g5lwYs9rNDjYxbMVULDhGVW0L5kSRARcSW0L3CF_H_XGpUyIkwAyK9r7Dj4gEs7vbhuW9J7CvE7svVu_xc_fvpsBH72nyKk4CKr_TcybQ9UcU0/s1600/blogger-user.png&#39;)
      .ssyby(&#39;blank&#39;)
      </script>
      Step 4. Save the changes by clicking on the Save Template button

      Changing the default avatar

      For Anonymous users: Replace the code in red with your image address
      For Blogger users: Replace the URL in blue with your own.

      You can choose an avatar from here and then copy the url of it:


      https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNbwWCul_lF3drU_FwRQksMYLkD4hyphenhyphenhdJMDiji094vbmQSqW4FJyE38NlY-EY1BQYGoYUhhXga9TkavXJ36OgbpjQPPZqg0bbGim6hhcj3fqcvjBp_fI7t81z-eNl-O42a2YKBHekKjdw/s200/default_avatar.gif


      https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJ7yeFUgseg0JhW22CXJMAhfWAkUPSdYgUyjrJ4w-OzW-NlsaeIE4J7VwrljlI_ODtNWZuaTf31Gumw62wTE-oDhoy4YLWTjM6Nx9eNrsRc7AE-8l14Q1fIGJgVyqUMkfxlxj62ejQDFI/s1600/facebook.gif


      https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSYIz6W7fHAhH3BN9D0p9qaboYsgrNJ8tNLueYVAufAQxPuz071A6_Rm7qtyOnBxbjrM4f-IgSHcHtzBehE83tbebE4JdMbw3pBFkmPvrxuexK_A94qtT-zyuDfQwzK0bXPS4_nM3Prxo/s1600/anonymous3.png



      https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhW2dbJVYIX64FRdm1bgg1X5B5qzTwPAmw3Hdf9PUEN7t5l3cgcZl3-kswxqOABl83FuGpnCO3jpVw4zcchojpTeF0xZS80maw2gHmroCcUTUzJoZcvWX77FDT7mKhC-E3iKrkqZuyvtOCs/s1600/blogger-user.png

      That's it! If you found this trick useful, please consider sharing it.

      Saturday, 5 May 2012

      How To Change Avatar Size In Blogger Comments

      This simple trick will help you modify the avatars size in Blogger comments whose default size is of 36px... pretty small considering that a lot of sites these days are using much larger avatars. To change the style and size of avatars is very easy - you just need to add the CSS code in your Blogger template that will make size of avatars to have width and height of 64px.


      Step 1. Go to Dashboard - Template - click on the Edit HTML button


      ...click anywhere inside the code area and press CTRL + F to open the blogger' search box

      Step 2. Type or paste this tag inside the search box and hit Enter to find it:
      ]]></b:skin>
      Note: you may need to click on the arrow next to it and then search this tag again

      Step 3. Depending on which comment system you use (with reply/no reply), copy and paste one of the following codes just above it:

      [Works in Blogger threaded comment system]
      .comments .avatar-image-container{
      background-color: rgb(34, 34, 34);
      border:1px solid #ccc;
      margin: 0px 10px 0px 0px;
      padding: 0px 0px 0px 0px;
      width: 64px;
      max-height: 64px;
      }
      .comments .avatar-image-container img{
      margin: 0px 0px 0px 0px;
      padding: 0px 0px 0px 0px;
      max-width: 64px;
      height: 64px;
      }
      [for old blogger commenting system]
      .avatar-image-container{
      border:1px solid #d6d6d6;
      margin-left: -30px;
      -moz-border-radius: 4px;
      background:#fff;
      height:70px;
      min-height: 70px;
      width:70px;
      min-width:70px;
      }
      .avatar-image-container img {
      background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGkmgC9IpDZBg8N4Z6Qu3y7SOwSZzQvcYltmoqRha4RGb0zEHBkd5vlxWFL8JMVSO8cdSfSR-hixYny9otWw4UnyGKZLMYLyYuWrKwtkjifj0VYD0ej-cMDTMvFd8JooQfDjjJ5KfT49Q/s200/anonymous.jpg);
      background-repeat: no-repeat;
      background-position: center;
      background-size: 100%;
      width:70px;
      min-width:70px;
      height:70px;
      min-height:70px;
      }
      Note: For bigger/smaller avatars, change the values in red. To change the anonymous avatar, replace the URLs in blue with your own. (works only for the old commenting system i.e. that has no reply option)

      Step 4. Cick on the Save template button to apply the changes.

      That's it. Now the Blogger comments avatars should look bigger.

      How to Hide Blogger Sidebar to Display AdSense For Search Results

      When visitors are searching for content on your blog, you have three options to display the search results: opening the results in the same window, in a new window or within your own site using an iframe.

      The best option would be, however, to display the search results within your own site/blog, mainly because you are not sending people off your blog when they are taken to a new page of search results which could be confusing for many because it doesn't look anything like your site or Google. Therefore, displaying the search results within your site, could make it look much more professional and may also increase the page views and the revenue from the ads on the search page.

      A problem that many bloggers are facing is that the page which displays the AdSense for search results must be at least of 800 px wide, so the posting area must be of minimum 800px and there's nothing like this in most of the blogs.
      So, what we will do in this tutorial is to set up the search results to be displayed in a static page (none of other posts or pages will be affected) in which we'll remove the sidebar so that we'll have enough space to make the post/page section of 800px wide. Moreover, we will create a static page designed only for the search results, then create a new AdSense for search in our AdSense account and finally add a small snippet of code top in your Blogger template to hide the sidebar in that specific page.

      Search results span the width of the page with the sidebar hidden:


      Display AdSense For Search Results Within Blogger Page

      Step 1. Create a new static page on your blog, you can give it the title 'Search Results' but leave the content section empty and then Publish the page.

      Step 2. When you publish the page you have the option to add the page to a menu, choose the third option 'No Gadget Link To Pages Manually' click 'Save and Publish'. In case this screen doesn't show, right click on View Page and select Copy Link Address. We will need this URL of the page later when we will create the AdSense for search.

      Step 3. Go To Your AdSense account, then go to My ads tab, select the Search option and Create a New custom search engine. Follow the steps until you come to the Search results option.

      Step 4. Select the 3rd method "on my website using an iframe", then Enter the URL of the page you created into the URL field and continue.


      Step 5. Follow the rest of the set up process and at the end you will be given two pieces of code. The first piece of code is for the actual search bar which you can paste into a Html/JavaScript gadget on your sidebar or wherever you want it. The second piece of code you need to copy and paste it into a new HTML/JavaScript gadget, click on Save, then drag it above the Blog Posts area


      Now that you have your page set up with the search results code and your search bar code in your sidebar, it is time to add a snippet of code to your template to remove the sidebar.

      Adding The Code In Blogger To Change the Results Page Layout

      Step 1. From Your Blogger Dashboard, go to Template and click on the Edit HTML button


      Step 2. Click anywhere inside the code area and press the CTRL + F keys to open the Blogger' search box

      Step 3. Find (CTRL + F) the following piece of code
      ]]></b:skin>
      Step 4. Just below it, paste this code:
      <b:if cond='data:blog.url == &quot;PAGE-URL-HERE&quot;'>
      <style>
      .main-inner .columns {
      padding-left: 0px !important;
      padding-right: 0px !important;
      }
      .main-inner .fauxcolumn-center-outer {
      left: 0px !important;
      right: 0px !important;
      }
      .main-inner .fauxcolumn-left-outer, .main-inner .fauxcolumn-right-outer, .main-inner .column-left-outer, .main-inner .column-right-outer {
      display: none !important;
      }
      </style>
      </b:if>

      Note: Replace PAGE-URL-HERE with the url of the page where the search results will be displayed (the one you have added at the step 4)

      Step 5. Now Save Template and you're done!

      This simple trick allows you not only to hide the sidebar in the search results page, you can as well, hide it on any page you want... just create your page and follow the same steps. It is also recommended to hide the sidebar in Privacy Policy Pages, Contact Pages and on all the non-content-based pages with little content or no content at all.

      Show Blogger Image only in Homepage and Hide it in Post Page


      To hide images/pictures from blogger posts and make them appear only in homepage, we will add just a small piece of CSS code in our template and then use the class "hidepic" each time we want to hide an image.

      Just follow the next steps:

      Step 1. Go to Dashboard - Template - Edit HTML


       Step 2. Click anywhere inside the code area and press the CTRL + F keys to open the search box:

       Step 3. Type or paste this code inside the search box then hit Enter to find it:
      ]]></b:skin>
      Step 4. Paste the following code just below it
      <b:if cond='data:blog.pageType != &quot;index&quot;'>
      <style>
      .hidepic{
      display: none;
      }
      </style>
      </b:if>
      Step 5. Save the Template.

      Now, each time you create a post, first add the picture that you want to hide and then switch to the HTML tab where you'll see the HTML code of the image that you added - it will look something like this:
      <div class="separator" style="clear: both; text-align: center;">
      <a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEji6-3Vg_uxw9FDKHA6ubNmiIjSAC9gNLJtpvHkLEj78fXfyRGHuuCh_jTAbVHYoAQGy81qulUY4-gxwd-fl73Ip5cQZLr13V24NDJSVPASswhC9-hKyoQOwIONJh5wMZ4OS0GizOLj8oQ/s1600/fire_bird_by_fhrankee-d32af8v.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEji6-3Vg_uxw9FDKHA6ubNmiIjSAC9gNLJtpvHkLEj78fXfyRGHuuCh_jTAbVHYoAQGy81qulUY4-gxwd-fl73Ip5cQZLr13V24NDJSVPASswhC9-hKyoQOwIONJh5wMZ4OS0GizOLj8oQ/s320/fire_bird_by_fhrankee-d32af8v.png" width="320" /></a></div>

      Note: it should be at the exact location where your image has been added 
      (if the image is at the middle of the text, then the code should be found at the middle)

      Step 6. Replace "separator" with "hidepic" - see the screenshot below:

      If you need more help, please leave a comment below.

      Friday, 4 May 2012

      Recent Posts Widget with Thumbnails for Blogger/Blogspot

      A few days ago, I posted a tutorial on How to Add a Simple Recent Posts Widget that shows a list with the most recent posts if you would prefer a more minimalist look. In this post, you will see a different way of displaying the Recent Posts on Blogger - this is specially for those who want to show more info like the recent posts excerpt / summary and the posts thumbnails.

      To add this gadget is very easy, just follow these steps below:

      recent posts, blogger widgets

      How to Add the Recent Posts Widget to Blogger

      Step 1. From your Blogger Dashboard, go to Layout > click on Add a Gadget link


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


      Step 3. Inside the empty box, add the following code:
      <div class="eggTray">
      <script src="http://helplogger.googlecode.com/svn/trunk/listbadge.js">{"pipe_id":"1a6640e2a78b2c6e736f2220529daae5","_btype":"list",
      "pipe_params":{"URL":"YOUR-BLOG/feeds/posts/default"},
      "hideHeader":"false","height":"500","count": 8 }</script>
      <noscript>Your browser does not support JavaScript!</noscript></div>
      <style type=text/css>
      .eggTray {margin:10px 0px;padding:0px;}
      .ybr li  {border-bottom:0px #cccccc dotted; padding:0px 0px 10px 0px!important;}
      .pipesTitle {padding-top:0px;}
      .pipesDescription {display:true;}
      .ycdr, .ycdr a {color:#999999;}
      .widget .popular-posts ul {padding-left:0;}
      </style>
      Note: 
      - Replace YOUR-BLOG with the url of your site/blog (ex: http://helplogger.blogspot.com) and pay attention to have no forward slash symbol "/" at the end of the url
      - To disable the scroll bar, remove the number 500
      - By default, this widget is set to display a maximum of 8 recent posts. To change this number, replace the number 8 with the number of posts that you want to appear
      - if you want only the posts titles, change true to none and "0" from padding-top:0px with 10

      Step 4. Save your widget. And you're done!

      Saturday, 28 April 2012

      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';
              }
          }
      }
      </script>

      <style>

       .google_translate img {
      margin: 10px 20px 0px 20px;
          height: 24px;
          width: 24px;
              }
              .google_translate:hover img {
      filter:alpha(opacity=0.30);
              -moz-opacity: 0.30;
              opacity: 0.30;
              border:0;
              }

      .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;
       }

       </style>

       <div>

       <a class="google_translate" href="#" target="_blank" rel="nofollow" title="English" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cen&hl=en'); return false;"><img alt="English" border="0" align="absbottom" title="English" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0IwfJfo9mqs7NsJRVApBv0lcd_22Mkx6_1J7KRntSt-6NJXza2t0V331QsPeIqoXjxL2mOj6mGiaqGTqnKNZysQ4n2A2jq8Xqqu9kg20JORPqbDmQDEk53NPkn1TximpmasrjXKN85aFx/s1600/United+Kingdom(Great+Britain).png" style="cursor: pointer;margin-right:8px" width="24"/></a>

       <a class="google_translate" href="#" target="_blank" rel="nofollow" title="French" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cfr&hl=en'); return false;"><img alt="French" border="0" align="absbottom" title="French" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyk01To4-pLSIVPGnPmrAZamnl4mtL95ZgF8fQIVZ7CPviavBhyphenhyphensHsd7vnEC3WyOaGtkGcJV47Fi1Gbj0aNXQZesp24flg9ZfXAOnPQsw3OMZw0igpEj2qprP2-QWoUZZtgXPW2tJNfYSe/s1600/France.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

       <a class="google_translate" href="#" target="_blank" rel="nofollow" title="German" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cde&hl=en'); return false;"><img alt="German" border="0" align="absbottom" title="German" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUYcwDT_-nYhC0vH_4RjWngWPh2R7Tw_B1SayfBAph2s6rKZcnnVIDnCEM-VbXS6J36iYcUj-MnNaqMudyQICMaBgVYDFGxmXETnu6VPyg-Vm7qNaOQSaIwcsWI3X98Hydbbfv57wYXXOv/s1600/Germany.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

       <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Spain" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7ces&hl=en'); return false;"><img alt="Spain" border="0" align="absbottom" title="Spain" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoc2nouyoywgZcy0IYd9VNd9vUZ6_81bsA-NKde00UuLkwjvfZ1hMV1PCCmVS6bxySKpbpd26qXdiysENMhrSXNWV-TEDJYSPJCiuqSb3rYt7ga_0CmTJNZ7R9YRF_6F5ruVRei05JuJzk/s1600/Spain.png" 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="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cit&hl=en'); return false;"><img alt="Italian" border="0" align="absbottom" title="Italian" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvvQAQUiWej12LRp0O1Q_hausY8NOI8JPQIwZln8De3i8FhUg56IOtjsqZ6ilIw-odcaVfWQjtqPprNnR0qlaCfVGEvpG1FABuInTCMCcjVZQ5Jl2yvZanAlEttysgWUWxUVtTEja6LW5t/s1600/Italy.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

       <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Dutch" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cnl&hl=en'); return false;"><img alt="Dutch" border="0" align="absbottom" title="Dutch" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjuo6NMk-FY0sFyFn3VdlVgUpy1eyKgM72FRZSxYJgnXbRPxl0Xg2LuVfBSMU7MF0g4edUslIkwxawmbrwrk3PqZGYgw5NYQbrK3r4I0hyphenhyphenfZkiRFLtR2jB84BvbD0u4ECRNB8UoDWn8Gbo2/s1600/Netherlands.png" style="cursor: pointer;margin-right:8px" width="24"/></a>
            <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Russian" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cru&hl=en'); return false;"><img alt="Russian" border="0" align="absbottom" title="Russian" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpjny3JK6W6-Uo_YxwCUgmoeobSakulImXQB4ssVgX4yEOkAFbfKNtKTCCXs06XxVwiyylH_aMB-qrkxKb9hM6Oosp4lJoNV2cBeSwzpoXwzJYfRrJeiryrIHftW-D-7DEmOaH3GOYF3yD/s1600/Russian+Federation.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

       <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Portuguese" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cpt&hl=en'); return false;"><img alt="Portuguese" border="0" align="absbottom" title="Portuguese" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBe8whgxUhMpaMckpQcjm38hLfJnb-kvtAclAf72SteSKg_8Q0YKAxhvi1S6es1et5qRLpCtuPP10hALMxRSiG_rpypyED8hMQFIAhsbO77QiGWXHXgAESRJeddWCn-BMNhVN3dcLn9jCx/s1600/Brazil.png" style="cursor: pointer;margin-right:8px" width="24"/></a>
      <br />
       <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Japanese" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cja&hl=en'); return false;"><img alt="Japanese" border="0" align="absbottom" title="Japanese" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKCLyxoqRoJZFIJf_p4_xonPnL4kgpRgdhrPdu974XrF-m-uyoNYIwMjeo15P4GnYooW-NBw9FCr-L4IxquYFatVijwofn-N2vmAFZUQaZFdtt4JW6br2rr4PPDM79jKH1fPOohcRtZL0w/s1600/Japan.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

       <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Korean" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cko&hl=en'); return false;"><img alt="Korean" border="0" align="absbottom" title="Korean" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFik_PMCbZNW05dQzaHLQHvxE8i7uEgepv6jgekEOXVXhEJqpFvIs1zEmsIn7H8w8lTc9cJ_Gejks9yBBcqfuzOEZUpnqn4I637RMiPlbIlZrJTkNcBJqYpaZOavKYQCLkzWc_k2H2nqio/s1600/South+Korea.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

       <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Arabic" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7car&hl=en'); return false;"><img alt="Arabic" border="0" align="absbottom" title="Arabic" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgjoZWRtydoD3-j5N1OdD9Uc9AyY3KtsSo3CpGu02TNFi_bb1qPRWML2_sDUSCc3fP8TQZsTi_T5rqQddfbbeUzLJaP2sPeaiw-qYwkbAc7vTG7t7iH3yNXhyphenhyphenUfOLZ0EdhMFYbivkExhBl/s1600/Saudi+Arabia.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

       <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Chinese Simplified" onclick="window.open('http://translate.google.com/translate?u='+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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKhDo5UxAlWkD2xMH8VThPADSsup2bkb9LGQVKtr1e0dFHTPGpa0ZC7DRZ4RMQK59hynufdJ-HaxZDD_ZA6ZWertf1eS_F97LDms9MCqqcqqE1ApsG1OOSDprixh4yNIMh4S4xsXfvTG9e/s1600/China.png" style="cursor: pointer;margin-right:8px" width="24"/></a>
          <p><a href="#" id="example-hide" class="hideLink"
          onclick="showHide('example');return false;">Hide</p>
      </div>
           </div>

      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 or apply different style on it. To make it fit your own design, you will need 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 > go to "Layout" and click the "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="http://helplogger.googlecode.com/svn/trunk/recent-posts-with-snippets.js">
      </script>
      <script>
      var numposts = 5;var showpostdate = false;var showpostsummary = true;var numchars = 100;var standardstyling = true;
      </script>
      <script src="http://blog-address.com/feeds/posts/default?orderby=published&amp;alt=json-in-script&amp;callback=showrecentposts">
      </script></div><a style="font-size: 9px; color: #CECECE; float: right; margin: 5px;" href="http://helplogger.blogspot.com/2012/04/simple-related-posts-widget-for-blogger.html" rel="nofollow" >Recent Posts Widget</a>
      <noscript>Your browser does not support JavaScript!</noscript>
      <style type="text/css">
      #hlrpsa a {color: #0B3861; font-size: 13px;}
      #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 {}
      </style>

      Option 2: Recent Posts Widget Showing Post Titles Only

      <div id="hlrpsb">
      <script style="text/javascript" src="http://helplogger.googlecode.com/svn/trunk/recent-posts-with-titles-only.js"></script>
      <script style="text/javascript">var numposts = 10;var showpostdate = false;var showpostsummary = false;var numchars = 100;var standardstyling = true;</script>
      <script src="http://blog-address.com/feeds/posts/default?orderby=published&alt=json-in-script&callback=showrecentposts"></script></div><a style="font-size: 9px; color: #CECECE; float: right; margin: 5px;" href="http://helplogger.blogspot.com/2012/04/simple-related-posts-widget-for-blogger.html" rel="nofollow" >Recent Posts Widget</a>
      <noscript>Oops! Make sure JavaScript is enabled in your browser.</noscript>
      <style type=text/css>
      #hlrpsb a {color: #0B3861; font-size: 13px;}
      #rpdr, #rpdr a {color:#808080;}
      .bbrecpost2 {
      padding-top:6px;
      padding-bottom:6px;
      border-bottom: 1px #cccccc dotted; }
      </style>
      Step 4. Customize it:
      - Change 5 (option 1) and 10 (option 2) with the number of posts that 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 http://blog-address.com text with your URL

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

      Thursday, 26 April 2012

      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

      How to Add jQuery Drop-Down menu in Blogger

      Step 1. Log in to your Blogger account and go to Template - Edit HTML


      Step 2. Click anywhere inside the code area and press the CTRL + F keys to open the search box


      Step 3. Type or paste this tag inside the search box and hit Enter to find it:
      ]]></b:skin>
      Step 4. Add the following CSS just above ]]></b:skin>
      #jsddm {
      height: 40px;
      margin: 0;
      overflow: visible;
      z-index: 2;
      padding: 15px;
      position:relative;
      }
      #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. Find this tag:
      </head>
      Step 6. Add this script right above/before it:
      <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js' type='text/javascript'/>
        <script type='text/javascript'>
        //<![CDATA[
      var timeout    = 500;
        var closetimer = 0;
        var ddmenuitem = 0;
      function jsddm_open()
        {  jsddm_canceltimer();
        jsddm_close();
        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;}}
      $(document).ready(function()
        {  $('#jsddm > li').bind('mouseover', jsddm_open)
        $('#jsddm > li').bind('mouseout',  jsddm_timer)});
      document.onclick = jsddm_close;
        //]]>
        </script>
      Step 7. Hit the "Save Template" button to save the changes.

      Step 8. Now let's add the HTML structure of the menu: 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>
        <ul>
        <li><a href="#">Drop 1-1</a></li>
        <li><a href="#">Drop 1-2</a></li>
        <li><a href="#">Drop 1-3</a></li>
        </ul>
        </li>
       <li><a href="#">Link 2</a>
        <ul>
        <li><a href="#">Drop 2-1</a></li>
        <li><a href="#">Drop 2-2</a></li>
        </ul>
        </li>
       <li><a href="#">Link 3</a>
        <ul>
        <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>
        </ul>
        </li>
       <li><a href="#">Link 4</a></li>
        <li><a href="#">Link 5</a></li>
        <li><a href="#">Link 6</a></li>
        </li></ul>
      Note : Change the titles and replace the # symbol with the URL address of each of your links

      Step 11. Click the "Save" button.


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

      Go back to Template > Edit HTML and search (CTRL + F) this code:
      <b:section class='header' id='header' maxwidgets='1' showaddelement='no'>
      Change 1 with 3 and no with yes like this:
      <b:section class='header' id='header' maxwidgets='3' showaddelement='yes'>
      Save the Template.

      And again, go to Layout and drag the menu immediately below the header


      Click the "Save Arrangement" on the upper right side and that's it!


      Here you can see the DEMO.