1. Log in to your dashboard--> layout- ->Page Elements
2. Click on Add a Gadget on the sidebar. select the type of gadget you need and Save the Changes.
Now you can see it top of the sidebar.
3.Now go to Edit HTML. "Without Expanding Widget Templates"
Scroll down to where you see like this :
4.Copy the name of the first widget.In my case it is HTML2.
5. Now click on "Expand Widget Templates"
and search the name you have copied in the above step. (In my case it is HTML2)
6.Copy and paste [php]<b:if cond='data:blog.url == data:blog.homepageUrl'>[/php] and [php]</b:if>[/php], EXACTLY at the same place as shown in the image below.
7. Now save your template and youare done.