Featured Article


Plug In Your Latest Plurk Plugins
Plurk is the latest humor and chat place where people leave small notes on what they have been doing over the past minutes and pondering whats next on their move awaiting for others to reply. Many have called it the clone of Twitter, some have mentioned how Plurk gets straights As winning Twitter in many areas..
Read More on this post..

Subscribe to Full Rss Feed



get your review
subscribe to my full rss feed!

Motive advent

Create expandable teaser summary for your blog

Expandable Post Summaries is when each blog post consists of a short paragraph of introduction followed by a 'Read More' link. This enables the reader to get a small introduction to each post on the main page. You get to show more posts in one page and your readers are spoiled for choices to read!

It is very simple actually, i will teach you step by step on how you can setup your expandable post summaries. "Read More!" There are basically three steps to follow if you want to implement expandable post summaries in the new layouts template.

Styling your CSS
The First step is to style it into your CSS and this changes how posts display on different pages.
  • Login to your account
  • Go to 'Template'
  • Go to 'Edit HTML'
Scroll down just above </head> and add in this code:

<style>
<b:if cond='data:blog.pageType == "item"'>
span.fullpost {display:inline;}
<b:else/>
span.fullpost {display:none;}
</b:if>
</style>


Note that there is a ]]></b:skin> tag just above the </head> tag. Add the above code so that it lies between these two tags. What we did here was to define a class
called "fullpost".

Read More Entry>>
The second step is to add the Read More links which will appear after the paragraph summaries.
  • Under 'Edit HTML', look on your top right and under 'Expand Widget Template' put a tick to open up more of your XML.
  • Scroll down the code and look for this code <data:post.body/>
Add the code below immediately after the above code :

<b:if cond='data:blog.pageType != "item"'>
<a expr:href='data:post.url' target='_blank'>Read more Entry>></a>
</b:if>


Upon completing the code,save the template and ensure you have a backup copy of this previous template. You should see that the Read More Entry>> appearing on your blog.

Increasing your Font Size and Font Weight

Font Size
start with
<span style='font-size:120%;'>

End with
</span>

Font Weight
start with
<span style='font-weight:bold;'>

End with
</span>

Using Both is another optional you can consider.

The Last Part to a Teaser look
To create the Final teaser look like and to allow users to read the full article with a click on Read more Entry, you got to hide your other half of the article post.
  • Type your Teaser paragraph
  • Leave this code on the next line to hide the rest of your post.
  • <span class="fullpost"> and </span>(In between this code will be the rest of your article content
Of course you can always void this blog trick if you want to present your post in full! Do you have a blog trick you want to share? Share it with me and i will share it will the rest here!

Random Post
The Nine Habits of Highly Effective Bloggers
Learn to fail to be successful in making money online
10 Popular Firefox Addons for Better Blogging
7 tips to write a professional and effective article
Easy Steps to add Favicon for Bloggers

Want to be updated with my Articles,Subscribe to my Full Rss Feed..

If you like this post, buy me a RootBeer at $3 to quench my thirst!

Filed: | Submit to Propeller | Submit to Digg | Submit to Stumbleupon

6 Responses to "Create expandable teaser summary for your blog"

Dandragon13

Thanks for the expandable trick, i have been looking for this code for sometime already!

Aziz says
November 15, 2007 6:26 AM

Also check out how to excluding the first post from Expandable Post Summaries hack for New Blogger.

Brad says
November 24, 2007 10:56 AM

This did not work for me.

Too bad.

Brad says
November 24, 2007 11:31 AM

Ahhh Very Good.

I didn't see that you had to put that "/span" "span" thing in there.

Thanks for the great tip,

Brad
http://daily-rambler.blogspot.com

Zakaria Chowdhury says
January 10, 2008 11:41 AM

Thanks for you help. But it is a manual process. What about existing posts? You need to change html into your previous posts manually.

In the following link you will find a tutorial about creating expandable post summary. I have created a javascript function which makes summary automatically. So you do not need to change html manually.

http://itsafun.blogspot.com/2008/01/blogger-tutorial-create-expandable-post.html

Etienne Teo says
January 11, 2008 2:05 AM

That is an extra great tip that you have showed, thanks for sharing.

Post a Comment

"Comments posted on Etienne Teo are moderated and will be approved only if they are on-topic and not abusive. Please use our contact or comment form for blogging or article related questions You may add your url but please don't spam - Thanks Etienne."