Making Expandable Blog Posts with Links

From Bloggerhacks

(Difference between revisions)

Revision as of 16:43, 26 June 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

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 [http://nofancyname.blogspot.com/2005/02/making-expandable-blog-posts-in.html 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