Sunday 24 July 2016

How To : Show Only Titles In Archive Pages and Label Pages in Blogger

How To : Show Only Titles In Archive Pages and Label Pages in Blogger 

by Zaheer Khan..

This is one great hack that'll let you show only blog titles when you see open a link that displays all posts under one label. You can click on Blogging How Tos in the top menu of my blog. It actually points to a link that displays all posts under the label blogging.

This will help the visitor to have a glance of what different posts are there in that category . Lets see how to do that in step by step.

Step 1. Go to Templates -->Edit HTML


Step 2. Click on Proceed



Step 3. Then click on the  Expand Widget Templates check box. Make sure its checked. Find the following code....


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

Step 4. Replace the above code with the following....




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

Done! Now click on any label and you'll be seeing only titles of your blogs.

No comments:

Post a Comment

AddToAny