I'm only posting this because A) I couldn't find where Blogger put the thing where you can chose to summarise posts (I tend to be long-winded, so I wanted to be able to show just a certain amount of each posts) and B) It's so simple and can be slightly modified easily. If Blogger has this available somewhere and I'm not just remembering it from my days as a Wordpress user (sorry WP but w/Blogger you don't have to do your own SEO). If it's available on Blogger please leave me a comment as to where, because I couldn't find it.
If you like the look of the summary of my posts, here is what you do:
1. Go to New Post > Edit HTML
2. Find " /head. Highlight it.
3. Cut and paste the following:
4. Find
5. Replace with the following:
<b:if cond='data:blog.pageType == "item"'>
<data:post.body/>
<b:else/>
<b:if cond='data:blog.pageType == "static_page"'>
<data:post.body/>
<b:else/>
<div expr:id='"summary" + data:post.id'>
<data:post.body/>
</div>
<script type='text/javascript'>
createSummaryAndThumb("summary<data:post.id/>");
</script>
<div style='clear: both;'/>
<span style='padding-top:5px;;float:right;text-align:right;'><a expr:href='data:post.url' rel='bookmark'><b>Read more >></b></a></span>
</b:if>
</b:if>
6. Now to edit the number of characters you show in the summary PC users Control-F 230.
7. You should find 230 within this code:
summary_noimg = 230;
summary_img = 140;
img_thumb_height = 100;
img_thumb_width = 100;
8. If you want to edit how much text shows in the summar play with the noimg (meaning summaries for posts with no images) and img (meaning summaries for posts with images) numbers. The img_thumb_height/width= will allow you to adjust the size of the thumbnails that will show in the summary with posts that contain images
Things I haven't figured out - if/how the thumbnails will work for the summaries if there are multiple images in the post, how to make it possible to change the font for the "read more" link, how to keep the breaks and other font formatting in the summary bit as they are in the original post. Also I'm not sure how it impacts site satistics (but I am sure that I don't really care). If I discover any of this stuff out or any of the other little bits for this, I'll update
If you like the look of the summary of my posts, here is what you do:
1. Go to New Post > Edit HTML
2. Find " /head. Highlight it.
3. Cut and paste the following:
<script type='text/javascript'>
var thumbnail_mode = "float" ;
summary_noimg = 230;
summary_img = 140;
img_thumb_height = 100;
img_thumb_width = 100;
</script>
<script src='http://blogergadgets.googlecode.com/files/excerpt.js' type='text/javascript'/>
</head>
var thumbnail_mode = "float" ;
summary_noimg = 230;
summary_img = 140;
img_thumb_height = 100;
img_thumb_width = 100;
</script>
<script src='http://blogergadgets.googlecode.com/files/excerpt.js' type='text/javascript'/>
</head>
4. Find
<data:post.body/>
5. Replace with the following:
<b:if cond='data:blog.pageType == "item"'>
<data:post.body/>
<b:else/>
<b:if cond='data:blog.pageType == "static_page"'>
<data:post.body/>
<b:else/>
<div expr:id='"summary" + data:post.id'>
<data:post.body/>
</div>
<script type='text/javascript'>
createSummaryAndThumb("summary<data:post.id/>");
</script>
<div style='clear: both;'/>
<span style='padding-top:5px;;float:right;text-align:right;'><a expr:href='data:post.url' rel='bookmark'><b>Read more >></b></a></span>
</b:if>
</b:if>
6. Now to edit the number of characters you show in the summary PC users Control-F 230.
7. You should find 230 within this code:
summary_noimg = 230;
summary_img = 140;
img_thumb_height = 100;
img_thumb_width = 100;
8. If you want to edit how much text shows in the summar play with the noimg (meaning summaries for posts with no images) and img (meaning summaries for posts with images) numbers. The img_thumb_height/width= will allow you to adjust the size of the thumbnails that will show in the summary with posts that contain images
Things I haven't figured out - if/how the thumbnails will work for the summaries if there are multiple images in the post, how to make it possible to change the font for the "read more" link, how to keep the breaks and other font formatting in the summary bit as they are in the original post. Also I'm not sure how it impacts site satistics (but I am sure that I don't really care). If I discover any of this stuff out or any of the other little bits for this, I'll update
No comments:
Post a Comment
Please leave a comment.