Hi all,
BACKUP TEMPLATE BEFORE PROCEEDING!
It sucks when you open your blog homepage and long posts are seen without been shortened, it makes the blog damn long!
Now i have found a javascript trick to shorten it for you~
Procedures:
BACKUP TEMPLATE BEFORE PROCEEDING!
- Open your template, use CTRL+F and find this
</head>
Just above it, paste this
<script type='text/javascript'>
var thumbnail_mode = "no-float" ;
summary_noimg = 430;
summary_img = 340;
img_thumb_height = 120;
img_thumb_width = 120;
</script>
<script type='text/javascript' src='http://2netlodge.com/blogger_widget/auto_readmore.js' ></script>
After that, now find another word
<data:post.body/>
- Replace <data:post.body/> with
<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 class='rmlink' style='font-weight:bold;padding:5px;float:right;text-align:right;'><a expr:href='data:post.url' >Read more ... </a></span>
</b:if>
</b:if>
Now you can edit the img thumbnail size and the length of per post text to show in the homepage
summary_ noimg= 430; Length of the text per post if there is no image in the post
summary_img = 340; Length of the text per post if there is image in post
null_thumb_height = 120; The height in pixels of the thumbnail.
null_thumb_width = 120; The width in pixels of the thumbnail
You can also change the Read More to your own word
Hope it helps!
Any problem with it drop it