Welcome to Little Tips! Know some "How to's" on almost anything! :)
You can search for other Helpful Tips online on the search box below.

Sunday, July 24, 2011

How To Show Post Titles Only In Blogger Label

Know How To Show Post Titles Only In Blogger Label. If your thinking of making a list of category, here are some simple instructions on how to tweak codes in blogger. Labels are what they call the category in blogger, tagging every article with a label is how you categorize it. But the problem with blogger is that when you click on a category/label it shows all titles with the description. Imagine if you have hundreds of article in one category then the outcome would be irritating. So what do you wanna do now is to remove those descriptions after every title. So here's how, follow these steps below.

Go and login to your blogger account.
Navigate to Dashboard*
Then Click Design*
Go to Edit HTML*
Check the Expand Widget Templates*

Now search for the code below;
  • <b:include data='post' name='post'/>
Then REPLACE it with this code below;

<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>

Preview your template before saving it to make sure the code is correct.
 
Hope this helps!
Visit Little Tips for more tips online.

1 comment:

Anonymous said...

thanks, it works fine,.. !!!

Post a Comment