Wednesday, March 10, 2010

Creating 'After the jump' summaries for your posting

Jump Breaks is a feature which lets you create expandable post summaries in your blog posts, so longer posts appear as an intro with a link to "Read More."

Creating jump breaks in your blog posts can be easily done right from the post editor, without the need for any HTML changes. There are a couple of ways to insert a "Read more" jump to your posts. If you use the new post editor (available on Blogger in Draft, or by enabling it via the Settings tab), you'll notice the "Insert jump break" icon in the editor's toolbar. Click this icon and the "jump break" will be inserted into your blog post at your cursor's position.


If you don't use the new post editor, you can still insert a jump break in Edit HTML mode by adding <!-- more --> where you want to position the jump break.


Want to change the "Read more" text to something more your style? No problem. You can edit the "Read more" text by clicking Layout and then Edit the Blog Posts widget.


One more note, the Jump Break feature does not change how your post appears in your feed. You can configure post feed options by going to Settings | Basic | Site Feed, and editing Allow Blog Feeds.

Note: For those using a customized third-party template, you will have to add a snippet of code to make Jump Breaks work.

To do this, access your blog's Layout | Edit HTML tab, and first backup your template by clicking the Download Full Template link at the top of the page. This will download an XML version of your template which you can upload later at any time if you need to.

After backing up your template, then click the Expand Widget Templates checkbox, and scan your HTML for the following snippet:
<data:post.body/>
Once you've located that code, paste the following snippet directly below it:
<b:if cond='data:post.hasJumpLink'>
<div class='jump-link'>
<a expr:href='data:post.url + "#more"'><data:post.jumpText/></a>
</div>
</b:if >
After you've pasted in the code, click Save and then you're done!

3 comments:

  1. Nice information presented in the post, thanks for sharing such a great post.
    create custom toolbar

    ReplyDelete
  2. Jump Breaks is a feature wizardry gold which lets you create expandable post summaries in your blog posts, so longer posts appear dark fall wars gold as an intro with a link to "Read More."

    ReplyDelete