Show Only Post Title In Blogger Label-Archive-Home Pages



How to Show Only Post Title In Blogger Label page,Archive Pages or even on home page of your blog.You sure would have seen many blogs using this trick to show only there post title in any page they want.Wordpress blogs easily do this using various plugins available but we bloggers also now can make it work in our blogs as its very simple tutorial to implement.

Here is an hack how to show post title in any desired page of an blog.

Please Read this tutorial very carefully as it is very easy but i am telling you two ways of doing which have different results.You can use one way at time or both ways at time but results will be different.I will try to make it very simple for you with what would be the result to the blog with each step, so read carefully.

1.Login to Blogger
2.Go To LAYOUT
3.Then Click On Edit HTML
4.Check Mark Expand Widgets
5.Press Ctrl+F

Now search For below code line in red :-

<b:include data='post' name='post'/>

And Replace it with Below Codes:-


<b:if cond='data:blog.homepageUrl
!= data:blog.url'>

<b:if cond='data:blog.pageType != "item"'>

<h3 class='post-title'><a expr:href='data:post.url'><data:post.title/></a></h3>

<b:else/>

<b:include data='post' name='post'/>

</b:if>

<b:else/>

<b:include data='post' name='post'/>

</b:if>


Now Preview Your template. If it accepts Your Html.Then Save It.

Now open your blog and click on the label or archive page of your blog it will show only post title . For demo check the category page of this Blog.

I hope you will be satisfied with it.This is one way.

Now there is another way of doing it but the results are different.

If you want to show only title of posts in your blog home page also,then only follow this way and implemet it.If you want only label page to show post title just get stoppd after reading first way only.

Now the second way to show only post title in blogger home page too.

1.Login to Blogger
2.Go To LAYOUT
3.Then Click On Edit HTML
4.Check Mark EXpand Widgets
5.Press Ctrl+F

Now search for this line in red :-

<p><data:post.body/></p>

After finding this line replace it with below codes :-


<b:if cond='data:blog.pageType == "item"'>
<p><data:post.body/></p>
</b:if>


This will show only post title on all pages of blogger including homepage label and archive pages.

One of my reader asked to show post title only in archive pages so i am placing code for him

Just use these codes to replace the above red line in place of above codes.


<b:if cond='data:blog.pageType == "index"'>
<p><data:post.body/></p>
</b:if>


And if you dont want to use post titles in archive pages use archive in place of index in above codes that's the only word making basic difference between the codes.

*Note-If you are using read more hack in your blogger you will get above red line twice.So replace only the line that appears first in your blog html code and leave second one as it is.

And then preview your template,if its ok. Save It.

The result would be like this in your blog.

Now i will explain difference in both hacks,so dont get confused.

1)Using only 1st way show post title in only label pages and archive pages.
2)Using only second way will show post title in your blog home page and label pages too but the result in label pages is not so beautiful as it shows Post footer links too like it shows in home page.
3)Install both ways in your blog together if you want to show post title in all of your blog pages and give it beautiful look, like have done it in my Earn Money Blog.

I hope now it have been clear how to use both, if still confused just implement 1st way and if you want post title in home page also implement 2nd way also. Thats' it.
If still any problem leave your comments.

Good Luck !!!!

94 comments:

Satish kumar said...

Thanks for giving such a great post.

Hey, I Want to customize the look of the post titles i.e., Colour,Size,font

My Blog
http://satish-games.blogspot.com/search/label/Action

I Dont want to show the Date and i dont want to show Underline.

I Want to show in this Manner
http://www.keisye-games.co.cc/search/label/Arcade

Please Help me..........

Anshul said...

Use that template design it will work for you too..its working good in your design too..i checked..

JK said...

Thanks... Worked well..

yahtzee ~ said...

Is there a way to do the second way with classic blogger ? I mean in HTML ?
thanks

Anshul said...

Sorry friend i nver used classic blogger, i am unaware of it..

Radith Prawira said...

stumbled this post already.. tq so much, i'll try this method asap :)

Roselover said...

thank you very much my blog www.allurequest.blogspot.com changed by your post Show Only Post Title In Blogger Label-Archive-Home Pages

Rein Valdez said...

Thank you very much for the instruction. :)

kenwooi.com said...

this is so awesome!
i've been looking for this everywhere!
thanks alot! =D

Daniel said...

Very nice man. 10/10 for the tutorials. No errors at all!

Hamidur said...

How can i change size of the font and remove underline.. Please inform me....

Anshul said...

@ hamidur after installing this it will not effect the css or design of your template friend,it will be same as of your previous,for changing font and remove underline you have sort out the css and make modidification in your template css design,which i cant do unlesss i get your all html codes,because nowadays all have different designs with different way to write codes.

Sujith Bhakthan T R said...

Its good but its showing just like a group of links placed.

How can i show it with the number of comments of that post contains like what u did in ur blog?

(See in my blog its showing like this
http://keralastatertc.blogspot.com/search/label/Time%20Table)

I wanna show it like this in ur blog
http://anshuldudeja.blogspot.com/search/label/Blogger%20Hack

pls help me

Anshul said...

@sujith ya sure friend you have installed both the codes as i told above,just install the code for only showing title in homepage as seocnd piece of code in tutorial above

Or

Just go to to your template and remove the codes as told you at first in this tutoroial for lable pages remove them from your blog it will then give you desired results.

baskar.bloger said...

nice post you r rocking i am use this tricks to my new blog http://softwareroxer.blogspot.com

Sandeep said...

Thanx very much for this post.My Blog is www.techieway.blogspot.com

Sandeep said...

Thank you for this post.My blog www.techieway.blogspot.com is not showing author name,labels above post title.

Anshul said...

@ sandeep Ya just go to blogger layout > page elements .Now click edit link of blog post box there you will be able to select the labels and author name to show up in posts.

lode said...

Thank you for this tutorial!
I was thinking of posting a book on blogger and found a tutorial for that. But I would like to do it your way.
I have not started a blog yet, and my questions are:
1. Do I understand it well that I could make a separate Label for each chapter of the book.
2. Can I place the Labels ("Chapters") in sequence so that the first one goes on top of the list, the second under it, etc., just like in a book?
Lode

Anshul said...

@ lode

1)ya just define two category one main and other to same post and think second as subcategory and show them manually as you want.

2)you can make post back only by date you can do that by chanigng publish date only friend.

Sandeep said...

i have checked the Posted By,label options in edit Blog post but still my blog is not showing these labels.

Anshul said...

@ sandeep the codes for label must have been removed from your blogger template then as you can see me too also dont use labels,author name date in blogger as i have removd codes permanently from template and some are unchecked.

And its difficult to tell here what codes to add and where to add,can make it work only myself as to tell and make you add will not be not possible.

lode said...

@Anshul,
Thanks very much for your answer.
1. Can I not only have the main category? (I mean only showing the main Labels, and nothing else.)
3. Can I later add text to a "chapter" (Label) that already exists by editing it into it, without it appearing as a new separate post?
Again, thanks for your kind attention to this.

Anshul said...

@ lode
1) ya you can have only one category i only suggested as i thought you wanted subcategory so just suggested trick to show them up.

2)Ya you can edit post at any time or add any category or remove that category or add extra category to it without appearing as new sepesrate post.

lode said...

Thank you very much for your help.
Lode

Naveed said...

thank you for this post.
Can you please send me a ready made template because i was unable to do so. my email adress is
nvd.maju@gmail.com
please, please, please,

Thanks in advance.

Anshul said...

@ naveed all the templates available are ready made just use any..

techpinas said...

@Anshul


Thank you so much for this! I'm not implementing it on my blog. :)

One question, though. When I click on the BACK button at the bottom of my homepage, it shows results in title only. Would it be possible to edit the code so that when I press back in Home (and in succeeding pages), the full posts will show?

Thanks Anshul!

Sincerely,

Mark

Anshul said...

@techpinas when you hit back button the previos page will will appear as it is as was before.If you had title on it it will show title and if post summary it will show that.

techpinas said...

works great, anshul!

I'm now implementing it on my site:

http://www.techpinas.com

check it out!

thanks for the tip!

Catherine said...

hi, is there a way to implement this only on labels pages? thanks!

Anonymous said...

Wow...thanks a loooooooooooot......

Mhz Jml said...

thnks a lots dude.. awesome!!

Cnetworld said...

Everytime I visit your blog,I can not but say the word - Thankyou.Great contents for the new blogger.
cnetworld.blogspot.com

Edgar said...

Hello -

I can't do the second way, I don't have "data : post. body"

For the first way, I do have a "b:include data='post' name='post'" and I replaced it as you said, but it has no effect.

BTW I'm learning a lot from you!! Thank you!! Love this blog!!

physicskerala said...

How can i show 150 or 200 letters of the post in the archive pages.....
http://physicskerala.blogspot.com

Anshul said...

just you can get only if you are using post summary hack but not only on archive pages.

Physics Kerala said...

when search in the blog it can see that

Showing posts for query phd. Show all posts

can i change the message?

also need number of the post title
1./post title/
2./post title/

Thanks..

Anshul said...

@Physics it can be removed not changed.And i dont see the numbering of posts in blogger.

IF said...

I implemented this hack and it works fine for my label pages, but does not work for archive pages. In fact, the archive pages would not display at all. My archive widget was set to display as a pull-down menu. No one really uses the Archive widget so I deleted it. Anyone else experience this problem?

Katy said...

I tried this code, but my dates and titles are squished together. Is there a way this can be fixed? Thank you!

Anshul said...

@katy just please show me demo of it.

pasajerolatino said...

Hi man ,i was searching for a list of post titles when i saw your interesting post , i didn´t test it but i think you can include an image of a view before and after bloggers change blog codes. Regards

jjacob said...

hi i can't seem to get the titles in place of the month even when i've done what you've said above.
is there anything i can do to fix it?

∂αηιєℓ said...

Hi Anshul,

Can you make this script not applicable for older and newer posts page?

As in:
The categories, search post results are showing the page title only (yes, they are working good) but do you think you can make the older and newer posts pages to show just like in homepage instead of titles (only, just like categories and search) too?

Thanks in advance!

Shabari Girish said...

Hi,

I modified a lot to give an attractive look to my blog. But the problem i am facing is, when i click on one old posts, links to recent posts will not appear.
Please advice, i want to show complete list of post in all pages.

Click to c my blog : http://engineers4world.blogspot.com

Thanks in advance

Anshul said...

@shabri there is no older posts link in your blog.

Andy Mahoney said...

My blogger blog is showing the same URL text for all Google search results, anyone fix it for me?
I have a couple of important Blogs (Well websites that use the blogger platform) to drive them.

My problem is as follows.

If you google 'Solar panels for sheds summerhouses' then the top 2 results are both from my website http://www.homebrewpower.co.uk the first link is a HTML coded one that displays the URL text as 'Solar Power For Sheds' which is as i require it to be shown. However the second link that comes from a blog post shows the URL as 'Renewable Energy UK' I need it to show the Blog page title for each post in the search results.

All my posts come up in google as 'Renewable Energy UK' but I only desire the index page to come up with this but the rest of the Blog pages to show as the post titles.

Can anyone look at the source code and help me out?

Source Code on http://www.homebrewpower.co.uk/index.htm

Answers to molesmail@gmail.com

Anshul said...

@andy confused to see your site as you making pages also and blogging also.Just i can say to keep title fix use this html before begging of head tag in codes.

<title>Your title goes here</title>

Lucky Flaush said...

Please help me!!! I have a site at www.arhivaflstudio.blogspot.com and you will se that on every page appears only the Blog Title...

I want to appear Post Title/ Blog Title.

I tried all hacks (I guess...) but it seems that I have a problem somewhere in the HTML code.

If you will help you I promise taht I will help you too. ;)

Thanks in advance!

IFFI said...

very nice codes,i have applied and my site is working nice now with the help of this code,thanks dear,my blog is

http://SmsClubs.blogspot.com

Anshul said...

@lucky you would have added some fixed title tag in blogger codes .

ayman said...

I need help To..
Very Important ..Mail answer to sex@schoolGround.tk
---------
How to Auto List Post Heading which are Under one Lable EG:
Posts Under "games" lable Show the Post Heading in a list
My website WWW.4FRee4you.tk

Anshul said...

@ayman just implement only first part of tutorial.

DJDB said...

Hi there. Is there a way to show posts title for posts after a specific post number? I mean, have for example ten posts with title and post text and the next five only with title (something like neowin does http://www.neowin.net/ ). Thanks in advance.

Anshul said...

@djdb not possible in blogger its wordpress.

O'Seamus said...

can a blogger guru tell me how can i list a number of post titles in a sidebar HTML widget? thx!
i tried several variations, for example

or b:loop but it doesnt work:(

Anshul said...

@oSeamus Like this

<li><a href="POST-URL">POST-TITLE</a></li>
<li><a href="POST-URL">POST-TITLE</a></li>
<li><a href="POST-URL">POST-TITLE</a></li>

Benazio R.P said...

need one for the classic template!

Ethiohooks said...

Thank you very much
this was what exactly I was looking for. It work's fine with me too.

COLLAGE, The Art &amp; Science of Healthy Aging said...

Anshul,

Your code worked well, and I'm very new to this, too, bravo to you. I used your first way above. Two additional questions, though. Is there an easy way to reduce the size of the font of the post titles on the archive page that lists each post by name? And, I need to add a small blank space because the first letter of the first word in the post title because it runs into the left margin (color change) -- this second question is tough to explain. (If you wish, see blog-collageaging.org)

Thank you!

Thank you!

ജിക്കുമോന്‍ | നല്ല തങ്കപെട്ട മോനാ said...

Hi anshul thanks for this tricks.. i has added this in my blog also. now the first page the full read more posta appear and when i click older posts the titles display from next page onwards. please help me to get the code for changing the present moce to normal mode(eg. same like home page and not the titles only on clicking older posts) this is my website. Click here

for Thattukadablog
plss reply me. fredyrony@gmail.com

Anshul said...

It will be like that only...

Jose Valdivia said...

Hello,

I follow your steps and looks really good with the labels, I just have one concern, sometimes the labels menu does not show all the posts for example here http://soad1982.blogspot.com/search/label/Soekris I have 8 posts and only shows 3 but sometimes it shows them all, is there something I can do ? thanks and regards

Scott-n-Rach said...

Great hack - is there any way to have a 'title' for the archive page, that is simply the name of the lable that is being listed, sitting above the list of page titles below?

Bhargav Joshi said...

@anshul

what should i do to get the reverse effect?

i mean at my blog http://currentrendz.blogspot.com/ im ussings woork template in which only title appears but i want lil text along with title they way we have in read more with thumbnail.

what should i do ?

reply soon

Bhargav Joshi said...

@anshul

hey i use woork template in my template only the title appears..

but i want read more effect what should i do?

http://currentrendz.blogspot.com/

Anshul said...

@bhargav to have title with small text u have to remove this hack and use read more hack only.Means remove this hack then nstall read more hack or read more by blogger only.

இனியாள் said...

will this work only in wordpress, because i tried in blogger and its not working.

Anshul said...

this is for blogger not wordpress and it works fine.

TBCD said...

Is it possible to show few lines along with the title..i think that will generate more curiosity..!

Anshul said...

@TBCD if you wanna show description also then it becomes read more hack man.In which u can show any amount description u want either one line or four lines.So use that then.

தான்தோன்றி said...

hi anshul, once i applied yuor code i my blog. it showed only post title in home page, labels and archive...but there is a problem. after applying your code the pages dont show its content. that is static pages below header dont show its content...for example the static page about me below header dont show its content...you give me solution...the static pages must show its content even after applying your code to show only post titles everwhere

தான்தோன்றி said...

PLEASE, show me solution. my static pages below header must show their content even after i apply your code to show only post titles everwhere..please find me a solution..i cant ask it to anybody..

Anshul said...

ya u r right as this hack was made before blogger introduced pages feature.so for this it will be like this only.

Sonu khrab said...

brother i m not satisfied,,,,,,,,, ur idea working.. but not fully. brother i want show post titel only ... not date of post .. plz help me.


sonu.khrab@gmail.com

Anshul said...

@sonu dude date is defined by these codes find and delte them

<b:if cond='data:post.dateHeader'>
<h2 class='date-header'><data:post.dateHeader/></h2>
</b:if>

Sonu khrab said...

i m facing problme......... i applyied ur idea. its working.. but brother.. aftar apply ur idea.. my all 10 page showing empty........ www.hhindimoviesonline.blogspot.com go on my blog and watch page desclaimer..... .. any suggestion..... ??? (idont know full english)

Anshul said...

@sonu ya pages not working with :) i need to update the cods to make pages work will do soon..

DWFFDB said...

Hello there, not sure if you grace your blog post comments much, but I thought I'd drop a message

Great code, works great with my posts

but I have pages and it causes a looping issue, when I click the page link, it shows the page the same way the posts do when you click a label. But clicking the page title reloads the same page

Any ideas? Much appreciated. Can share blog if you are available to advise.

DWFFDB said...

Whoops I do apologise I sent a brand new message regarding the code not working with pages yet I've seen your response regarding this above!

When do you think you'll revise the code to include pages? I've tried a few things including add static_pages pageType into the code to no avail, if anything, it stops both pages and posts displaying - whoops!

Cartoonist said...

i really thank you for this post man

Lunatic Pandora said...

can I copy your article to my blog?? Thx....
my blog: gits2ndgig.blogspot.com

Anshul said...

@lunatic ya but with a backlink to me.

أثير العاني said...

Great post, Thank you a lot

Gourmet Dad said...

Anshul, I'm in need of your updated codes to make pages work. I love how it looks but makes my posts go away when clicked on the individual page/post.

Thanks!

Gourmet Dad said...

I got it... to fix the page issue!

your comment section won't let me post an H3 tag however. so send me an e-mail if you want the code.

Thanks!

Gourmet Dad said...

This works but screws up my pages. It looks as though with the changes to blogger recently, the "Pages" are viewed by this HTML the same way as a post. When I click the page it come up with a link to the page similar to how it links to a post, and its an endless circle if you click that link.

If you can find a way to fix that please let me know... I love the fix but need my pages to work!

Thanks!

Post a Comment