Display Only Blog Post Title When Labels Are Clicked

Display Only Blog Post Title When Labels Are Clicked | Blogging In Web 2.0 Beta
Here is Another very Use full Blogger Hack. Also Know As Table of content means only show blog post title not any summary. This Hack makes our blog to load fast and display only blog post title when some one click on any of the label in our blog. This hack works on labels. So it is easy to install and very useful. Follow the below steps to install it on your own blog.

1. Login in to Blogger Dashboard

2. Go to Layout >> Edit HTML

3. Expand widget Template ( Please Don't Forget to Backup your template first )

3. Search below code

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

4. Replace it with following one

<!-- Start Table Of Content For Labels -->

<b:if cond='data:blog.homepageUrl != data:blog.url'>
<b:if cond='data:blog.pageType != &quot;item&quot;'>
<a expr:href='data:post.url'>
<data:post.title/></a>
<b:else/>
<b:include data='post' name='post'/>
</b:if>
<b:else/>
<b:include data='post' name='post'/>
</b:if>

<!-- Ends Table Of Content For Labels -->

5. Preview and Save Your Template

After Saving Check out your blog. and you will see the difference of your blog posts in label search view

Related Posts by Categories



If Your Enjoyed this Article

Then you May Also Interested In Receiving Updated By Mail:

Enter your email address:-

6 comments:

Andy said...

Thanks for the tip! I just incorporated this on my site, www.blogmule.com

I added < br/> (I had to add spaces in order to post the code) to the end of the first line of code. This makes all the post titles appear on different lines. If anyone has a different solution on how to do that, I'd be interested to know. The code looks like this now:


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

Note: if you're going to copy this code, remove the space between < b:if and < br/>.

Thanks again!

Anonymous said...

Hi!

Here’s a Romanian blogger who took some of your texts and included them on his blog without giving any credit at all…

http://perfu.lanebuni.eu

This is just an example:http://perfu.lanebuni.eu/2009/02/07/display-only-blog-post-title-when-labels-are-clicked.html

He did this from another blog too

Gurpreet Singh said...

@sandydeea Thanks for caring about me. I know that but he has given me full credit for other post. I really appreciate that you care about me.

Anonymous said...

Actualy i don't see any credit on that blog for any texts taken. That is the whole thing. And on another post he said he did the texts in english. But he ca'n write in romanian really ok and...uhh...he's a spammer too.

Anonymous said...

uhh...i saw one "via"(credit)..but there's more texts withowt credits

gondola display said...

thank you for share,good post

Post a Comment