Hide Full Posts, Create Post Summaries - Expandable

When I started blogging I found out that full posts are visible on first page. Now that does not looked good on my first page. How am I gonna hide full posts, create posts summaries and add a "Read more..." option in my blog?

Well by default, blogger doesn't provide one. So you have to make it yourself. So lets have a tutorial on it.

1. Go to Layout>Edit HTML and backup your template and expand it.

2. Find </head> and just bellow it add the following codes
<b:if cond='data:blog.pageType == "item"'>
span.fullpost {display:inline;}
span.fullpost {display:none;}
the style tags are necessary cause without these tags it will not work.

3. Find <data:post.body/>
and just bellow it add the following;
<b:if cond='data:blog.pageType != "item"'>
<a expr:href='data:post.url'>Read more...</a>
You can change "Read more..." to your liking.

4. Preview your template for errors and save it.

5. Go to Settings>Formatting and add the following codes
Begin your post
<span class="fullpost">And here is the rest of it.
in "post template" and save it.

Write the first paragraph in "Begin your post" and the rest in "And here is the rest of it".

Note: There is a limitation to this Even if you want a "full view" for a particular post, the "Read more..." option will be still be there. It's upto you how to use it...

Try it! Working? Then Subscribe to Simple Blogger Tutorials.
Also see Adding Custom Favicon to Blogger.

Popular posts from this blog

How to Add Extra Gadget/Widget Section to Blogger Header

How to add Google +1 Button to Blogger

Add Facebook XFBML Like Button to Blogger