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









6 Responses to "Create expandable teaser summary for your blog"
Thanks for the expandable trick, i have been looking for this code for sometime already!
November 15, 2007 6:26 AM
Also check out how to excluding the first post from Expandable Post Summaries hack for New Blogger.
November 24, 2007 10:56 AM
This did not work for me.
Too bad.
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
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
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."