Here's a multi-purpose and quite awaited Blogger Hack.
This is for all those bloggers who are looking for a hack, which adds "Read More..." expandable link automatically to all their posts (whether the posts are new or old).
You have to specify the number of characters after which the post will be truncated. If you select it as 500, then all your posts in the home page will show only first 500 characters.
And moreover this hack has already been modified to show the first image from the post, as a thumbnail along with the truncated post.
I called this hack as multi-purpose, because through this hack you not only add the "Read More" tag to your posts, but it also optimizes your "Archive pages" (Feb 2008, Oct 2008, etc.) for search engines and also for your readers.
NOTE: In the previous "Read More" hack, you have the control over your posts (to hide/truncate different posts at different lengths). But once you apply this hack, all your posts will be of equal length.
Instructions to follow:
STEP 1:
Log in to Blogger, go to Layout -> Edit HTML, and mark the Expand Widget Templates box.
Now find (CTRL+F) this in the template code:
</head>And immediately ABOVE/BEFORE that, paste this code:
<script type='text/javascript'>var thumbnail_mode = "no-float" ;You may change the numbers in blue, as per your wish. If a post doesn't have images then the length of the summary will be 500.
summary_noimg = 500;
summary_img = 450;
img_thumb_height = 100;
img_thumb_width = 120;
</script>
<script src='http://files.main.bloggerstop.net/uploads/3/0/2/5/3025338/read-more_auto2.js' type='text/javascript'/>
If a post contains image, then text length will be 450, and the first image that will be displayed will have these dimensions:
width= 120, and
height= 100.
STEP 2:
Now again in the template, find (CTRL+F) this:
<data:post.body/>Then REPLACE that line, with this code:
<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='float:right;padding-top:20px;'><a expr:href='data:post.url'> Read More... <data:post.title/> </a></span></b:if></b:if>
Save the template and make your readers and search bots happy !
NOTE: Although the JavaScript file has already been uploaded and linked in the code in STEP #1, but as a backup I suggest you to download and save a copy of it:
BackUp - STEP 1:
Download this file: read-more_auto.js
Download Link
BackUp - STEP 2:
Upload the file to
MyDataNest (Recommended),
NOTE: Edit & save the folder properties at your MyDataNest account as "Hidden" and NOT as "Private".
And copy the DIRECT LINK to the file.
Credits: VietWebGuide
106 comments
Write commentsHi,
ReplyThanks for the wonderful tutorials on this blog. I actually had a small request. Could you please tell me, is it possible to make a template, such that there are three columns on the front page, labels and archives, but only two columns on the content page? Also is it possible that the content can take up the unused space? Will be waiting for your reply and any suggestions u can make.
Hmmm....that will take some time to think upon...
ReplyWhy don't you simply use this trick to show/hide widgets in particular pages:
http://bloggerstop.net/2008/12/show-widgets-in-only-specific-pages-or.html
I went through it. Am using it on my test blogs. the problem is, it leaves a lot of white space, which i want the posts to occupy.
ReplyIs there any way to use different css files with the conditional tag.?
ReplyI was thinking whether we could use a two column css file for the post pages and a three column one for all the other pages. Just a thought. Do yopu think whether this is possible?
ReplyHmmmm
ReplyNot sure....but i think it is possible:
create 2 css files for 3 and 2 sidebars respectively;
show file 1 in homepage (3 sidebars, and less width of main-wrapper),
and show file 2 in other pages (!=home) (2 sidebars, and more width of main-wrapper).
I tried this js, but don't like

ReplyMy images get weird and the text configuration disappears.
The texts looses all the configurations like Bold or colors
Here is a pic for an example from my blog
http://img31.imageshack.us/img31/1069/20090515214520.png
Ya......even I am not using it, I generally like to hide posts at different lengths.

ReplyBut this will be a great hack for those, who use less or almost no images in their posts...
OR who are too lazy to hide each & every post
If the post have NO MAIN IMAGE but contains other image like when we use for explaining steps.Then, this hack is taking first image as main image.How to avoid this ?
ReplySecond problem, I am facing is, post containing video does not open when I click on read more..
Here's the post, where you can show only summary, and it will not show any image in the summary,
Replyhttp://www.vietwebguide.com/2008/07/to-read-more-c-tip-mt-cch-t-ng.htmlotherwise it will show the first image of the post.
Ankit, I haven't visited your blog for a long time, can you give me the address of your blog..
Thanks for this post dude
)
ReplyI am one of those lazy bloggers
I have a blog that has no choice to edit post footer size. I have no idea how to add the option.
ReplyAnyone have an idea?
hi Dsai,
ReplyAs usual a great post. But I would rather stick to the previous hack of read more coz it gives you a command and control system
Dsai I wanted to request you a post, I hope you wont deny, it will be difficult for you to share but we would love to know that how did you gained a GPR 3.0? for your homepage. Plz provide with some tips that we could apply to do something for our blogs. I will be waiting for the answer
Great! Now I don't have to worry about forget to place the span code anymore.
Replyhi DS, when i use this the whole blog becomes slow
Replynearly how many pageviews do you get per day..plz be frank !
ReplyI think you are talking about your blog hack-genius, in that as you already have many JS files, for digg, tweetmeme, your ads, addtoany etc. so actually it's a mixed effect of all of those. If you want to improve the loading speed, keep only those things which are really important to you, and from which you are actually gaining something.
Replyso then how do i display digg and tweet .js file in the post page and not in the main page
ReplyYes, this is a gr8 tip, I have posted the same in my blog some times ago. I think that is much simple, only with 2 steps. link
ReplyGreat Find and Great Post.
ReplyHowever, This cannot be called as exactly as a wordpress hack simply because if the image height & width are already less than the provided values in the Template's HTML, it's gonna make even the most smallest image, totally pixelated.
I was actually hoping for a wordpress sort of hack where if an image is, say, greater than '500' in height, only then it would automatically get truncated to the specified height in the .CSS file. Nevertheless, great find.
@ Sai Krishna,

ReplyRead this tutorial to show widgets only in posts and not in homepage:
http://bloggerstop.net/2008/12/show-widgets-in-only-specific-pages-or.html
@Deluxe Templates
It is the same code, with only 2 steps..
@Roady,
Ya idea is good.....let's see if we could do that
Regards
Sai
thanks !
Replyregards,
aakar
Thank you for this. I've followed the instructions but I have two weird results:
Reply(1) On roughly half the page loads, the posts aren't truncated - They are full length with a working "Read More" link.
(2) When the posts *are* truncated, it seems that the summary-generation is dropping the first carriage return.
Do you have any ideas on this?
Site: http://janeproject.blogger.com
Update: On exactly every other page load, the posts aren't truncated - They are full length with a working "Read More" link. This occurs in both FF and IE. Any comments would be appreciated, as I am out of my depth here.
ReplyThanks for sharing this.I've tried and follow this instructions.
ReplyIt works! but..weird and funny for mine.
The first landing page,the post aren't truncated until I refresh it.
If I refresh it again,it would be exactly same as previous with full post.
Switching between on-off!!! Don't have a clue how to fix this.
I'm using FF3
I have the same problem as Patt. It switches between the full lenght and "read more". Is there a way to make it consistent?
ReplyMina
www.theuniverseguru.com
Me too. Same problem with Patt and Mina. Any solution for this? Thanks.
ReplyAnne
Easy Buy & Sell
its not working on my older posts, I see 2 posts in 1
ReplyIts awesome Sai...Thanks for the post.
Replybut i also have the same problem like Pann, mina and anne...
ReplyResolved! I'd changed the file name and hosted the file into other hosting site (hotlinkfiles.com)...
ReplyThanks for telling that Ezri,
Replythat means there's some problem in the hosting service - boxstr.com,
I am seriously mussing the hotlinking service from google - googlepages,...
anyways i'll update and replace the link to boxstr with hotlink and will try to inform others too...
thanks again Ezri...
Regards
Sai
how can we show orginal size of image and more than one image
ReplyThis post has helped make sense on my site. Thanks
Replyhttp://www.probingeye.com
Hi
Replyi use this code on my blog, but its not working right. One time is working, and when refresh the page, is not. When refresh again, its working.
Please help me
Apologize for my English!
Instead of uploading the file to boxstr.com use hotlinkfiles.com...that's it !
Replythe url i use is that:
Replyhttp://boxstr.com/files/5912391_wxsn7/read-more_auto.js
is not not correct?
I fix it with hotlinkfiles
ReplyThank You!!
how to show original size of image plzzzzzzzzzzzzzzzzzzzzzzzzzz help
Reply@ Anonymous,
ReplyHere's the tutorial:
http://bloggerstop.net/2008/12/upload-images-in-blogger-without.html
But add width parameter to the img tag, so that the images don't go out of the content area.
Okay, everything I've tried on your site so far has worked beautifully for me, but I swear I did everything exactly as you said and I uh, got nothing.
ReplyIs there a small detail I might have overlooked? I'm not sure whether I should take it out and start over or there's simple reason why something like this happens.
www.peevishpenman.com
May be there's some problem b/w this code and the frameset you are using...
ReplySorry for so many posts...
ReplyThis is the hack I tried to remove in order to install --- more ---
When I remove it, it gets rid of the entire post. When I edit it to show the entire post, it will not allow --- more --- to work.
edgarsreview.blogspot.com
I've gone back to the js for now
Hello Edgar,
ReplyOnce you remove the code instructed in Steps 3 and 4, and the posts are displayed in full length, comment here:
http://bloggerstop.net/2009/09/blogger-read-more-sidebar-errors-fixed.html
to start working on the new method...
Very Good website! Thanks for it!
ReplyIf you people want to keep the aspect ratio of your photo open the read-more_auto.js file with your text editor and change the following: '+img_thumb_height+'px and '+img_thumb_width+'px and use the % of the size you want your thumbnail (example; 50% or 75%) be aware that both sizes must be the same porcentage. save your file upload it and see if you want the results. If you want to justify the text of your post, find #outer-wrapper text and below must be this: text-align: Left change the value to Justify and you must get the desired result. Is not that I know too much abuot XML or javascript but Firebug was a great help to figure this out. If someone find a way to center the photo while keeping the text justified, please let me know Gixman@hotmail.com
Reply~x(
Replyhi i m having prob with this trick when i used this trick my social bookmarking icons r appearing over the images of post its nt properly placing below the post so pls tell what should i do ? i want to use this trick help me bro see my blog at http://watsyourblog.blogspot.com
ReplyHi Vicky,
ReplyTo add those hiding social bookmarking widget, I have added 2 lines of code to hide the widget in the homepage and show it only below posts, so do the same in your blog, read this tutorial(step 3):
http://bloggerstop.net/2009/05/add-autohiding-social-bookmarking.html
hi
Replyfew days now hotlinkfiles is not working and boxstr is not working on IE & Chrome.
any ideas?
thanks in advance
Ya HLF is going down frequently. Do not use boxstr.com as it is not supporting direct linking of .js(javascript) files.
ReplyPresently I am using and satisfied with Myadatanest.com
You may use it too. Soon I'll review it here on BloggerStop
Thank you Divya
Replyi used this script but it shows the post two timed check my blog and tell me how to correct it
Reply@kartikey
ReplyDo not use hotlinkfiles.com
it's down for many days now. chk your link urself:
http://www.hotlinkfiles.com/files/2750395_bzedg/read-more_auto.js
Register and use mydatanest.com
Hello again
I was wondering, is there any way to make the post summary image also link to the full articl,e like the rmlink does? I have been able to customize this script a little bit but have been unsuccessful trying to make the image link to the post. Anywho, thanks again for all of your great resources.
ReplyHey Lauren,
Replyyes that is possible.
Instead of the .js file referred in the post, use this one:
http://boxstr.com/files/6153818_ovqez/summary-post.js
and then change this in the post:
<script type='text/javascript'>createSummaryAndThumb("summary<data:Post.id/>");</script>
to this:
<script type='text/javascript'>createSummaryAndThumb("summary<data:Post.id/>","<data:Post.url/>","<data:Post.title/>");</script>
Ohh great! Thanks I am going to try this
Rock on thanks !
ReplyAfter using this script all the post ,steps are congested like step 2 is written just after step 1 with only a space between them but they should be in the next line . Is there any way to correct it.
Replycheck blog http://masterstop.blogspot.com/
And pls help
When I replaced the section of code like you said it didn't work, so I instead just tried it using the new script w/ out replacing the code, it apperared that it did work. But when I published my blog the post summary image URL is "undefinied" so brings you to an error page. I see that you have many people asking you questions so I don't mean to bug you, but if you know how or where it is that I can "define" that URL I'd be much obliged. Thanks, have a great day.! Thanks ~Lauren
Reply@ Kartikey,
ReplyJust visited your blog, I think that script is not reading the code for new line as <br />, try it without a space before /, like this <br/>
@ Lauren
I think the folder at your mydatanest account is set as "private", make it "hidden", because files are not accessible to others if the folder is set as "private", here chk the link:
http://mydatanest.com/files/nymphont/15752_6tm1w/readmore1.js
yep I had the folder private, so nothing worked! #fail lol thanks
Replyadmin,i tried it..but it's only working on IE but not firefox...pls help me... ~x(
Replyhttp://www.gm-zone.co.cc
@RV2x08
ReplyJust checked your blog, the hack is already perfectly.
Nice template buddy. One advice: hide your "sharing is sexy" and "linkwithin" widgets from your homepage, and show them only below your posts:
http://bloggerstop.net/2008/12/show-widgets-in-only-specific-pages-or.html
and this file in your template:
http://mydatanest.com/files/YSG...../smiley.js
is not a valid link,
you have to create an account at mydatanest, upload the file yourself, and then paste the link in your blogs template.
tq sai. i've solved many problem within yr threads and advices. now my blog looks much better than before.
( any solution?
.tq!
Replybtw,i want know y my feedburner readers always keep decrease or increase?? until now still just a few feed readers showing at my counter.
2nd,how can i get approval from google adsense? i've apply for 3 times with many different google acc but still rejected by google. is that any problem with my blog? can check it for me wat is the problem exactly?
sry for my bad english and many question to ask. still newbie with those things. ~x( also thx for compliment with my blog
Thats great, your blogs overall looks now macthes the content perfectly. Don't worry about the feedcount, it will increase gradually...just keep posting about useful stuff regularly on your blog.
ReplyActually feedcount is the total of your email subscribers(which is almost constant or usually increases) and no. of people coming to your blog, thru feed (which varies daily, sometimes inc. & sometimes dec.), so the total count also sometimes inc. and sometimes dec.
I do not use adsense, and so cannot help much in that. But I think you can ask your doubts at Google groups or even better at DigitalPoint.com forums.
Good luck and happy blogging.
remarfuckable if it works...
ReplyHi to all
Replyi try to remove the hack from my blog and after that the sidebar is disappear
i put the old code (with hack - before edit) but again the sidebar is not working.
please help me
the url of my blog:
fatsa-tv.blogspot.com
thank you in advance and i apologize for my English
i forgot to say, incide a post, the sidebar is working fine. in main blog it disappear.
ReplyYour blog is not open to all buddy...
ReplyBTW this hack shouldn't create such problem, may be you using the <!-- more --> method of Blogger [jump Breaks]
ReplyHi, Great tutorial worked perfectly for me. However I have a question. I trying to use this read more hack with the hack which allows me to place adsense with my blog wherever I want.
ReplyBut on the homepage these adsense ads are placed above the link and do not look very good. Is there a way to write html so this does not happen?
Your help would be most appreciated
This trick superbly works in my blog!
ReplyThe read more hack is not working on my blog www.bayofblog.blogspot.com showing at the end of every post.plz help me to solve this.
Reply@Vijay
ReplyYou have the pasted the code above this code:
<head>
whereas you have to paste it above this one:
</head>
Hi, i need a help , i have tired all possible solution but cant get it work, i guess something with my templates, i have added u in google talk. if you could please help me. waiting...

ReplyThanks,
@DOM,
ReplyDo not use this trick, as recently I found that this method is not at all SEO friendly. I would suggest you to use the method advised by the Blogger Team. Read how to fix the errors too.
not working bro u can take look at www.bcsexamguru.blogspot.com replay soon i am wating
Reply@nil
ReplyThere's no problem in the coding work done by you. May be some code-conflict with the template :|
Can you have that code that limits up to 500 characters in your blog also with the read more feature where you place
ReplyTEXT
span = fullpost..
TEXT
span
so that you can control it?
Yes you are right, i was about to say, that this method is not SEO friendly, but you have already informed us, thanks
ReplyBecky.
Thanks for the help your site is fantastic i only wish that your site reaches top of all sites
Replythanks again for the info
working in my blog thank so much
ReplyIt doesn't Work I don't know why ...
Replysoftware93.blogspot.com
Hi there, couldn't find the code in your blog...
Replyhey sir i am using this technique on my blog but i have one problem. The problem is that when i use linkwithin widget, it dosent hid on home page...rather it is shown on all posts below post summery...
Replycheck it out yourselfHERE.... (www.priyankahuja.com)
Plz don't use Google-sites, simply use mydatanest and keep a back-up ready at sigmirror (in case mydatanest ever goes down).
ReplyHi. Thanks for the help. Quick question. Any way to modify this so that the posts on page 1 are full length but once the post gets moved to page 2 (and following), it is truncated? thanks! www.thesavingsisters.com
ReplyHi,
Replyits very nice post,but i want to know that will it work for "ads theme" templet.pls let me know your answer because its dangerously required for me....:D
Divya,
ReplyJust a bit of your wonderful time
Is there any way of resizing those images proportionally?
There is a way. But the author is not willing to share it.
I know we can resize images proportionally with javascript but i dont know how to integrate it here.
The person who knows about the method's site is
homebiss.blogspot.com/2010/02/best-post-summary-read-more-hack.html
see the comments section
Would be delighted if you are interested in this hunt.
i used ur trick but its not working u can see it on my blog samachar-rojgar.blogspot.com . i tried to set the niimg parameter tp 150 even but it just displays a read more link without shrinking the post
ReplyHmmm, i guess ma template designer has used ur code in ma template..If u c ma website, every page has a read more..How to remove it..I just want read more in posts wic are big..pliz mail me @ : contact@cancer-cure.info...Its urgent...pliz..thank u..
ReplyBack your template, by downloading it first.
ReplyThen delete from this line:
<script type='text/javascript'>
summary_noimg = 800;
summary_img = 650;
....
....
....
....
....
to this line:
div.innerHTML = summary;
}
//]]>
</script>
Also, REVERSE the STEP #2
Thanks a lot...
ReplyOnce you are done with removing this hack, use this method to summarize selective posts only:
Replyhttp://bloggerstop.net/2009/09/read-more-is-official-now-and-static.html
i have a photoblog named Expozed Galleria. The theme is show only 15 to 30 images of each celebrity. i want to show only one image of each post on homepage and the rest in See More. currently i am using secondary blog named XPOMAX for see more purpose. how can i do this using only main blog. please see http://xpoxpo.blogspot.com.
Replywaiting for your help. mail : canblo@yahoo.com
hello,,,,,,
Replyi have used many methods for adding "READ MORE".....
1)http://bloggerstop.net/2008/10/blogger-help-add-read-more-link-to-your.html
2)http://www.eblogtemplates.com/how-to-add-the-blogger-read-more-expandable-posts-link/
but none of them is working for me... can you give a solution or help me with the problem i am having......
please help me as fast as possible.....
thank you.....
hi.. its not working properly in my blog...
Replythere is no change in d size of d post..
wat can i do.. help me..
is it possible to show links of the original post on the post summary when you do this hack?
Replyi've tried tweaking it a couple of times but im still unsuccessful...
Please help..:D
physical activity is any Cheap Steelers Jerseys form movement that causes your body to use enegy. it may be purposeful. such as when you exercise or play sports. it may also occur as part of your regular routine, for example,as you are walking or riding bike to go to school,Aaron Smith Jersey you are doing the physical activity. many forms of physical activity can improve your physical fitness, the ability to carry out daily tasks easily and have enough reserve energy to respond to unexpected demands. maintaining a high level of physical fitness gives you a sense of Ben Roethlisberger Jersey total well-being and is an important lifelong health goal.Sports help to keep people healthy and more energetic.
ReplyBrian Westbrook Jersey
Mike Quick Jersey
Nathaniel Allen Jersey
Donovan McNabb Jersey
Stewart Bradley Jersey
This is really an exclusive hack!!!
ReplyI have done a tiny modification just...slicing post title which was adjacent to Read More tag....
You can see it: www.fishclickbd.com
Thankx Divya
oesn't work for me please help
ReplyHi...
ReplyNice but i am confused, I have a site songs download , when i am tried to ctrl+F for this code data:post.body/" , there are too many codes like this. With which one i have replace
Comments are moderated on this blog
Allowed HTML tags: <b>, <i> and <a>
Comment Like This! and Optimize your blog EmoticonEmoticon