ss_blog_claim=2e94f0887f73e6585a7215e268b58384 Dot Blogger: 11/12/08

Translate This

Wednesday, November 12, 2008

How can I create expandable post summaries?

The Quick Answer
Add tags to your posts to mark which parts you want hidden in the summary version.
Add CSS declarations to your template to hide those sections on the index and archive pages, but not on post pages.
With this trick, you can choose to display an arbitrary amount of text from the beginning of each post, as a teaser for the whole thing. Then users who want to read the rest of the post can click a link to see the full text. THis is handy if you have lots of long articles all on one page. Note that you'll need to have post enabled in order to make this feature work.

There are three ingredients that go into this feature: conditional CSS, a "read more" link for each post, and a modification for the posts that use this feature. You an find the links and tags and codes, and modifications for this at google help.

VOTE for me at Bloginterviewer

Vote for me at Bloginterviewer. Make the Holidays a Happy one by showing your support and voting for Dogcents at Bloginterviewer. Click on the TEXT Link here VOTE FOR ME CLICK HERE >
VOTE for me by clicking on the TEXT LINK here. Show your support and please give a small donation to help by food and give shelter to these poor dogs. A few dollars can make a difference. GIve thanks to what you have this thanksgiving but share and give to those who have nothing. Share and give a small donation, to DOGCENTS. VOTE FOR ME CLICK HERE > Be Sure to Leave Your Comments!