Home Health Ideas Money Women Automotive Gadget Computer Travel Etc.

Display Titles only in Category Page for Blogger

Imagine you have 100 posts in a category (label), it must be very difficult for your readers to find a particular post. They have to scroll to many pages before reaching the right one.
To overcome this problems, it’s a good idea to display only the titles of the posts in a category page. In addition, it will also make your page load lots faster.
Here how to it in Blogspot:

Go to  Template -> Edit HTML -> tick Expand Widget Template

Find these set of code:

 <!-- posts -->
<div class='blog-posts hfeed'>

<b:include data='top' name='status-message'/>

<data:adStart/>
<b:loop values='data:posts' var='post'>
<b:if cond='data:post.dateHeader'>
<h2 class='date-header'><data:post.dateHeader/></h2>
</b:if>
      <b:include data='post' name='post'/>

Then replace the code in red above with:
<b:if cond='data:blog.homepageUrl !=
                data:blog.url'>
     <b:if cond='data:blog.pageType != "item"'>
         <a expr:href='data:post.url'>
         <data:post.title/></a><br/><br/>
     <b:else/>
         <b:include data='post' name='post'/>
     </b:if>
 <b:else/>
     <b:include data='post' name='post'/>
 </b:if>

It's done and click save to save the changes.

Popularity: 2% [?]

Posibly Related Posts


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button

Leave a Reply