Making Expandable Blog Posts with Links

From Bloggerhacks

(Difference between revisions)
(Sites Using This Hack)
Line 48: Line 48:
* [http://zerorezuk.blogspot.com/ Zero's World]
* [http://zerorezuk.blogspot.com/ Zero's World]
* [http://musings.about.foxtwo.cjb.net/ Elite's Musings]
* [http://musings.about.foxtwo.cjb.net/ Elite's Musings]
 +
* [http://crosswordfiend.blogspot.com/ Diary of a Crossword Fiend]
Edit this area and add your own link if you are using this hack.
Edit this area and add your own link if you are using this hack.

Revision as of 17:00, 13 July 2006

Contents

Platform

For use with Blogger blogs.

Author

Original code by Amit Upadhyay, How-To by Julie Meloni

Homepage

Making Expandable Blog Posts in Blogger

License

Creative Commons Attribution-NonCommercial-ShareAlike 2.5

Skill Level

You must be comfortable with editing CSS and your Blogger template.

Description

Use this hack to hide all post content behind a link. When the link is clicked, the user will be sent to the post page, where the entire text of the post will become visible. The "read more" link will only appear on posts which have text marked up in a specific way, e.g. between specific <span></span> tags.

Method

See detailed instructions at the homepage, but in general:

  1. Enable Post Pages in your Blogger settings.
  2. Obtain code from the instructions.
  3. Insert some conditional tags surrounding styles into the stylesheet portion of your Blogger template.
  4. Insert JavaScript snippets into the body area of your Blogger template.
  5. Modify specific styles for links, if you wish.
  6. Re-publish your blog.
  7. Surround some text with a specific <span></span> tag pair when you have extended text to include in your post.

Sites Using This Hack

Edit this area and add your own link if you are using this hack.

Personal tools
FreshTags