Hiding posts & using widget on home page

10:30:00 AM |

 STATIC BLOGGER HOME PAGE or LANDING PAGE ! The default blog-posts which used to appear on the home screen in any blogger blogspot blog is not present on this blogger blog of mine.
This is how you do it. You may see tutorials saying remove the following code from html editor window.
<b:widget id="Blog1" locked="false" title="Blog Posts" type="Blog" >
But,if you delete this piece of code ,it deletes the blog post widget . i.e, it  removes the blog post widgte as such and you will never be able to show your blog posts. It deletes the widget from the blog totally. Here's a new trick
So to remove the blog posts from the home page alone.
  1. First go to Dashborad => Design =>Edit HTML (Edit Template HTML)
  2. Search for the "]]></b:skin>" and add the code after.
<b:if cond="data:blog.url == data:blog.homepageUrl"><style type="text/css">body#layout .sidebar {display:inline;margin-top:200px;}</style></b:if></div>
 To hide your posts alone and keep you sidebar intact  remove the .sidebar from  .post, .sidebar  from above piece of code in first block.
Using Label on

<script type='text/javascript'>var numposts = 3;var showpostthumbnails = true;var displaymore = false;var displayseparator = false;var showcommentnum = false;var showpostdate = false;var showpostsummary = true;var numchars = 80;</script>
<script type="text/javascript" src="/feeds/posts/default/-/LABEL?orderby=updated&alt=json-in-script&callback=labelthumbs"></script>