Thursday, 20 May 2010

How to show post titles on Home page only

If you have a News headline type blog and wish to display only post titles on home page then this blogger hack is for you.This hack will display Post titles on home page unlike some of the previous hack which shows Post titles on home page aor archive page.If  you looking for more blogger hack then i recommend you read Blogger Hacks.
You can add reply option to your blogger like most of the wordpress blogs and make it more professional. Add reply Option to blogger comments like wordpress


How to show post titles on Home page only


Step[1]
Login to your blogger dashboard  > layout  > Edit HTML

Step[2]
Scroll down to where you see tag .

Step[3] .Copy below code and paste it just before the tag .

And Add This Code:


Step[4] Now Save your template.
You can chnage number of posts to show on your home page by Clicking on "Edit" link of Blog Posts Section.(Under Page Element Tab)


IF you carefully examine the Code Then you will Find that we are disabling all CSS Tags related to Posts

.post-body {display:none;}
.post-footer {display:none;}
.comment-link {display:none;}
.post img {display:none;}
.post blockquote {display:none;}
.post blockquote p {display:none;}
h2.date-header {display:none;}
.post-labels {display:none;}
.post-rating {display:none;}

If you apply this hack to your blog ,please share with me.What do yoou say about this hack i would like to hear from you.

No comments:

Post a Comment