109 How to Create Post Summaries in Blogger Layouts Blogs
February 28, 2008 /

One of the questions I am asked most about my blog is how I create post summaries on my main and archive pages.

The hack I use for this is Ramani's "selective expandable posts". This hack enables me to choose whether my posts are summarized or not, and provides a "Read full post" link only for those which I have chosen to summarize.

Whereas I would normally refer readers to Ramani's original post to learn how to implement this technique, many readers have expressed their difficulties in using this, and Ramani seems unavailable for support. So I have decided to write a full explanation of how to use this hack in the hope that this will answer many of your questions, and enable you to use this hack in your own Blogger layouts blogs.

Please note: This "selective expandable posts" hack was written for Blogger layouts blogs (those which use widgets). If you need to learn how to use such a technique for Classic Blogger templates, please refer to this post instead.

How the selective expandable posts hack works

This technique uses a combination of JavaScript and Blogger code to display your selected portion of a blog post on your main, archive and search pages. On item (post) pages, the full content of your post will be displayed.

This technique is very useful for bloggers who write long posts, or who prefer to provide a "teaser" of their full post on the main page, which would encourage readers to read the whole article on item pages instead.

Before installing the selective expandable posts hack to your blog, you should be aware of two things:

  • Only your future posts (and any previous posts you choose to edit) will feature a summarized version on the main pages of your blog. This is because you must use a post template to make the summaries appear. Those posts which do not include this template will not be summarized.
  • To ensure the summary hack works, you will find it necessary to edit your posts in HTML mode, rather than using the rich text editor. Again, this is due to the necessity of the post template; if you edit in compose mode, you will run the risk of accidentally deleting some code which is not visible in the rich text editor.

If these considerations are something you can live with, you're ready to install the "selective post summary" hack.

How to Install the Selective Post Summaries Hack

This isn't the easiest hack to install in a Blogger template. In fact, it took me a few attempts to get this right the first time I installed it! So I would advise you to remember two important things:

Back up your existing template before making any changes whatsoever!

You should always back up your blog template before making any changes to the template code. It is even more important to back-up before installing this hack, as we are dealing with the display of your blog posts, rather than a simple edit to your styling code!

Read each step fully, familiarize yourself with the code, and then read it again!

It is important to pay attention to detail when installing this, otherwise you may place code in the wrong place and get that dreaded "Your template could not be parsed" message.

Also, there may be slight differences to the code which you will be looking for in your template. I will point this out where appropriate, along with the alternatives which may be present in your template.

Here is my step by step guide to installing the selective post summary hack in your blog template:

  1. Back up your existing template code!

    To do this, go to Layout>Edit HTML in your Blogger dashboard, and click on the link which says "Download full template". This will allow you to save a copy of your existing template in XML format which you can use to restore your blog if ever your template edits go awry.
  2. Choose to create a new post. On this page, click on the "Edit HTML" tab so this becomes highlighted. Then in the content box below, paste this entire section of code, exactly how this is written here:
    This is the summary
    <span id="fullpost">
    This is the rest of the post
    </span>
    Then save this post.

    This will only be a temporary post, to help you understand if the following edits you make are working. Once you have installed this hack into your template, you can delete this post.
  3. Next go to Layout>Edit HTML in your Blogger dashboard, and check the "Expand widget templates" box.
  4. We now need to add the required JavaScript code to the head section of your blog template.

    This is the easy part of the installation! Simply copy all of the code on this page to your clipboard (you can do this easily using the keyboard shortcuts CTRL+A followed by CTRL+C).

    Next, locate this line in your blog template:
    </head>
    Paste the code from your clipboard directly before this line.
  5. Here comes the tricky part...

    In your blog template, you will need to locate the DIV section which contains this line:
    <p><data:post.body/></p>
    In many templates, this section will look something like this:
    <div class='post-body>
    <p><data:post.body/></p>
    <div style='clear: both;'/> <!-- clear for photos floats -->
    </div>
    However, the class of the containing DIV section may be called something different, such as:
    div class='post'
    div class='entry'
    div class='post-body entry-content
    In the case of third party templates, this could well be something else entirely!

    The best way to locate this is to search for <data:post.body/> using the CTRL+F function in your browser, then take a look at the surrounding code to work out where you need to edit.
  6. Once you have found this section of code, take a look at the code below. I've added some code in red, which is what you will need to add in your own template. As I have explained, the <div class='post-body'> section may be named differently in your own blog template, so do bear this in mind!
    <div class='post-body'  expr:id='"post-" + data:post.id' >

    <b:if cond='data:blog.pageType == "item"'>
    <style>#fullpost{display:inline;}</style>
    <p><data:post.body/></p>
    <b:else/>
    <style>#fullpost{display:none;}</style>

    <p><data:post.body/></p>

    <span id='showlink'>
    <a expr:href='data:post.url'>Read More......</a>
    </span>
    <script type='text/javascript'>
    checkFull("post-" + "<data:post.id/>");
    </script>
    </b:if>

    <div style='clear: both;'/> <!-- clear for photos floats -->
    </div>
    Before you attempt to save your template, I would advise you to preview your blog.

    If you have pasted the code correctly, you will see the test post you created earlier will now feature only the summary, followed by the "Read more..." link, like this:



    If you have pasted the code incorrectly, one of two things will happen: you will either be unable to preview, or your test post will appear in full, rather than as a summary.

    In either case, you should clear all edits you have made, and start again from the top: it's a far better idea to begin the process again, paying attention to every detail, than to try and edit the code!
  7. After you have successfully made the changes outlined above, you can proceed to save your template.
  8. The final step is to add a post template in your blog settings.

    This is the same code we used to add the content to our test post, though this time we will add this as a permanent template which will appear in your post editor each time you write a post.

    Go to Settings>Formatting in your Blogger dashboard, and scroll right down near the bottom of this page where you will see a text box for your post template.

    Inside this box, you must paste the following section of code:
    This is the summary
    <span id="fullpost">
    This is the rest of the post
    </span>
    Be sure to copy and paste this code exactly as you see it here. If you accidentally insert any extra spaces, extra characters or line breaks by typing this manually, you run the risk of breaking the operation of the script.

    Finally, save these settings, and enjoy the convenience of selectively summarizing your blog posts!

Using the Selective Expandable Posts Hack

For me, Ramani's selective post summaries hack has been the most effective method of summarizing my posts. However, when using this hack you may need to change the manner of your blogging habits slightly, and learn how best this can be used.

Here are some tips which I have learned through using this hack on a regular basis, which will probably be useful for you too:

  • You must create and edit your posts in Edit HTML mode. The <span> tags which are included in your new post template will only be visible in Edit HTML mode. If you use the regular "Compose" mode, you may accidentally delete some of the required code, which will cause your posts to be displayed improperly.
  • If you do not want to summarize a post, simply delete all of the post template when creating your post! In this case, there will be no "Read more" link beneath the post, and your complete post will appear on the main pages (ideal for short posts).
  • If you are used to writing your posts in paragraphs using appropriate paragraph code, like this:
    <p>This is a paragraph</p>
    <p>This is another paragraph</p>
    you will need to wrap all of your content in paragraphs, and may need to add the appropriate paragraph tags to the lines in your post template too.
  • When using this hack, you can easily implement Google AdSense code to appear in your post pages only, and can choose to display this within the body of the post itself, as well as above/below your post content.

As I mentioned earlier, this hack will only work for posts which you create after installing the required code and post template. Your existing posts will not be summarized unless you edit them to add the required code inside the post.

If you have a great many posts, I would advise you only to edit the posts which appear on your front page. So if you display seven posts on your home page, you would only need to edit the previous seven posts, if you would like these to be summarized. The reason I advise this is because in my experience, fewer people browse through your archives using the "newer/older posts" links than would search through using the blog search function. This means that your readers' experience would suffer little disruption from seeing older posts in their full form.

Troubleshooting

If ever you notice a "summarized" posts appears strangely, or other posts seem to disappear from beneath this on your main pages, the problem is most likely that you have accidentally deleted the closing </span> tag from the very bottom of your post. Don't worry if this happens, it is easily solved by adding that line right at the very end of your post!

Another possible problem Ramani has noted is that sometimes the "read more" link will appear on archive pages, even for those posts which have not been summarized. This issue is not yet resolved, though if I come across a definitive solution I will be sure to update this post

Final thoughts

This is by no means the only method you could use to summarize your posts (Jackbook has discovered seven different methods), though for most bloggers the selective method will be the most effective and easily maintained choice.

I hope that my explanation of Ramani's excellent hack will help you implement this version of post summaries in your Blogger layouts blog.

If you have any more hints or suggestions for using this hack, please feel free to leave your comments below.

109 Comments:

6 March 2008 14:18 Dav7 said...

Nice!!!

work at the first try!


now 1 question, can I change the "read more" text to my language ?

6 March 2008 14:22 Amanda said...

Glad to know this worked for you, Dav7!

Yes, you can change the "Read more..." text to say anything you like and it will still work fine.

It's regular text, so if you search for this term in your template, you should be able to change the text easily.

Best wishes,

Amanda

6 March 2008 14:31 Dav7 said...

l-o-l amanda, sorry

I was soo happy to be able to make this work that I didn't notice the cod

off course I can change and I already know How :)

I´m printing all your tips and making an arquive to use on future blogs!

keep the good work helping us!

8 March 2008 10:21 free for all said...

it doesn't work for oldest posts

8 March 2008 22:25 Swanie said...

Thank you Amanda for the step by step instructions. It worked in my first attempt. I'll use it when I upgrade my blog to beta. Thanks again.

26 March 2008 10:37 C K said...

Thanks for the infomation. Definitely worth a try!

26 March 2008 15:59 mintblogger said...

Hi Amanda,

Everything in working fine, but I want to align the "Read More" link on right side of the post with bold letters and different color.

Can we do it? I think yes, because in your blog it is right aligned with bold , red color.

Please help.

26 March 2008 22:31 C K said...

Have implemented it! Worked great at the first try. Fantastic set of instructions you got there!

30 March 2008 11:12 ametya said...

Hi amenda, I made minima two coulmn template provided by blogger in to 3 column attractive template by seeing and reading you. But i failed in "read more". At every time i follow the steps given by you, it shows that

"Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
XML error message: Element type "div" must be followed by either attribute specifications, ">" or "/>"."

plz help me....

30 March 2008 15:33 Amanda said...

For Ametya: I think the best way to approach this would be if you can send me your template code by email. Then I can take a look at this for you and send you the template back with the summary hack included.

Hope this will help!

31 March 2008 01:58 Michelle said...

Thanks a zillion!!!

31 March 2008 09:13 ametya said...

I got succeedd but only when one of my blog friend helped me through guidelines. Your and his syntaxs are differnt. I don't know why didn't your guidelines didn't work for me while my friend's syntax worked to me in a single step.And thnk u for ur intrest to help me. I wish all new blogger do get you and my friend like friends in their friend list.

But i want to say a big THANK YOU as ur guidelines helped me to make 2 to 3 column template in a quick and single step. SO a big NEPALI NAMASTE to you and a big THANK YOU too.

5 April 2008 01:15 Internet Marketing Strategies said...

Hey I don't know what I'm doing wrong but the hack it's not working on my blog. I think the problem is on the paragraph code, I may be using the wrong HTML code to wrap the paragraph...

Can any one give me some help please.

Thanks,

Luis Galarza.

8 April 2008 08:56 ametya said...

Hi again amanda, i am monetizing my blog seeing and reading your posts. see my blog, if it is nice then say a big congrats to yourself since reading your articles only i came at this stage.

As my blog is dragging other's articles in my blog means copy pasting, so i would like to request isn't there any ease way so that i can do my work in an ease manner ?? I am right now do copy other's text article through ctrl+c and then in new post i do ctrl+v which is ease but still eat my enough time for the appearance and paragraph changing. Also image copy paste also eating my lot of time.

Isn't there any way so that i just put the URL of that article and i don't have to do anything except clicking on publish post so that i could make my blog as a compilation of good articles found in net.

I hope you have the answer..plz amanda..plz help me....

28 April 2008 10:07 twinks said...

Hi Amanda,

Great tutorial! It worked first time I used it. I'm loving my blog more now..thanks to you.. my post body is more organize now.
Thanks a lot.. keep up the good work! :]
cheers!

29 April 2008 04:08 Tasmanian Arc said...

Thank you thank you thank you thank you thank you thank you thank you thank you thank you thank you

Did I mention thank you enough? No?

Well: thank you

I have looked up about 10 other blogger help sites and groups on this topic and you are the only one that's mentioned that:
div class='post-body

may look like something else on different templates such as:

div class='post'

div class='entry'

div class='post-body entry-content

It may seem obvious to techno-eager beavers but to this newbie it meant the hack worked

YOU LEGEND (yes I am a bit overexcited - I know nothing of HTML and now feel at least a bit tech savvy)

2 May 2008 06:57 Lana said...

I've tried this code and it works! It's great. But I'd like those words "Read more..." to be bold and blue. Is it possible to change it somehow?

Lana

2 May 2008 14:25 Amanda said...

For Tasmanian Arc:

Thank you so much for your lovely comments! I'm glad to know this has worked out well for you :)

For Lana:

The quickest and easiest way to do this would be to add the following few lines just before the closing </b:skin> tag in your template:

#showlink {
font-weight: bold;
color: blue;
}

This will ensure all instances of the "read more" link will appear in strong, blue test. You could change "blue" to a hex value of you prefer a different color to the generic blue this produces though.

Hope this helps!

10 May 2008 01:53 BigGirlsDoItBetter said...

Hi- This is not working for me in the terms of adding a summary. I've followed the directions closely and I'm getting syntax errors. Please help. Thank you.

14 May 2008 05:57 Theresa Komor said...

GREAT! Worked on the first try!

Now, if you could tell me how to get rid of that Blogger bar across the top, I'd be set!

Thanks, Amanda!

15 May 2008 03:48
Anonymous said...

The javascript that i should put already exceeded its bandwidth. i cant continue the next step.

19 May 2008 02:25 Dewan Muda said...

thanks.i works well..anyway,i want to change the "read more" to different text in different post.so,how could i do it?example in post1 i want to display "more pictures" and in post 2 i want to display "read more"?

24 May 2008 01:04 DWiner said...

Gr8 1...it worked for me the first time...considering I'm dummy at coding. Thnx a ton!

24 May 2008 14:06 DWiner said...

In Step 2, you could have said 'Then publish this post' instead of SAVE. I only saved it but did not publish only to realize later what you actually meant.

1 June 2008 23:41 The DINKs said...

I'm pretty sure I can handle this, except that the link to the page that has the code I need to copy does not work - apparently a lot of people are taking your good advice, and the site has exceeded its allotted bandwidth. Help please!

3 June 2008 21:31 DWiner said...

I have a problem in creating Post Summaries on my blog. I did as instructed but you can see the effect here. Could you please help me out rectify this? I have emailed you my templates xml.

10 June 2008 17:16 Isabelle said...

thanks so much! clear, easy to follow directions that worked for me on the first try!

11 June 2008 15:20 Bobby said...

Hello Amanda

Thank you so much! it worked like a charm. At first I was very hesitant to try since it looks very complicated. But you explained it so clearly, even to a newbie like me understands it perfectly.

Thank God for people like you :)

Bobby

19 June 2008 12:35 Swanky said...

Hi. This is probably gonna seem rather odd, but I managed to get this to work the first time I tried it, but when I tried to do the same to my second blog it doesn't work. I have tried everything I can think of, gone through the whole process more than seven times now, and even compared the relevant code from my first blog to that of my second and can not figure out what is going wrong.

When I try to check the code in a preview, I get an error on the preview page, but it doesn't say anything is wrong on the edit page, so I can't even tell you where the code might be going wrong. o_0 Can you think of any reason why this code might work on my first layout (a slightly modified minima) and not on my second (a slightly more modified rounders)? Any light you could shed on this problem would be greatly appreciated, cause I'm completely stumped.

Thanks again for all your great codes and layouts and tutorials and everything else! You really are great. ^_^
~Swanky

20 June 2008 03:52 Swanky said...

Ok, well, never mind. It worked now. Still don't know what I was doing wrong before, but it's all better now, so...

Thanks again for all you great codes and such. Your blog is *so* helpful. ^_^
~Swanky

20 June 2008 08:44 ella said...

If you do not want to summarize a post, simply delete all of the post template when creating your post! In this case, there will be no "Read more" link beneath the post, and your complete post will appear on the main pages (ideal for short posts).

Hi Amanda, thanks so much for the great instructions. I am quoting your above advice though because it doesn't seem to work on me. Even if I erase the span codes in the EDIT HTML section of the "Create a Post" page, the "Read more" link still appears. Is there a way to actually erase this in my short posts?
I will be really grateful for your help, more power to you!

Blessings,
Ella

21 June 2008 15:07 Sparhawk said...

This is a great hack. I applied it to this site: http://seeknomore.blogspot.com/

The problem is that, when I used my comp at work it works, but when I used some comp in a public internet shop it doesn't work. I'm not sure if the version of IE has something to do with it.

3 July 2008 10:19 Tran Tinh said...

It works now with my blog but I only works if I make a post in html mode, not work in compose mode, what happens? As if i post in html mode, link will disappear. Tinh

Here is my blog: http://www.blogviet.info

10 July 2008 14:43
Anonymous said...

hi amanda...
firstly thanks for this instruction..
but i am not very clear on step 3..
can i get some help???plz..
thank you...

10 July 2008 17:29 After Fashion said...

Thank God, after about the tenth time I figured that if you have code other than what is displayed such as div class='post-body entry-content it's easier to delete that and paste what is shown. Thanks for your help, my blog is starting to look great.

14 July 2008 17:36 bnycastro said...

Hey Amanda

excellent resources here on your blog. I am having some trouble getting this hack to work on my blog. I am running a custom template which is 3 columns. I think I have followed the instructions correctly but I am getting a
---
bX-2nuf8g error
---
when I am trying to view the preview or save the template :(
--
I know you are busy with the template [I am liking the minor changes so far] change so any help you can spare when you are free would be much appreciated.

16 July 2008 02:10 J M Van Horn said...

Thanks for the helpful instructions. I have tried this several other times from other sites and I was never able to have it work. :)

19 July 2008 23:13
Anonymous said...

Thank you. Very very new to blogging but thanks to your accessible and comprehsnive instructions I succeeded where I had failed on many attempts with other instructions.

28 July 2008 02:00 1001 noisy cameras said...

Another excellent tutorial at BloggerBuster! I just followed the instructions and it was installed without any problems.

The option to show "read more" only when necessary is a big big plus.

This allows me to use a hybrid short-post/long-post approach. One strategy I am trying is to show long posts for the newer posts, and then make them short after a couple of days (if they are long posts).

Thanks Amanda :)

30 July 2008 17:37 Melissa said...

Amanda, I'm not sure what happened but now I can't view any of the posts. The read more link didn't show up either. I am just hoping I didn't delete something. Could you please help me? Here is the link to my site: http://themakeupdivas.blogspot.com

Thanks!

30 July 2008 19:29 Melissa said...

I figured out why I couldn't view the posts, there was some code that did not get deleted. Anyway I am having trouble with the "read more", it is not clickable for some reason. Not sure what to do. Any help would be appreciated. :-)

7 August 2008 04:09 Fabu-less Beauty said...

I know this might be an unrelated question...but I installed this code and it worked perfectly for my blog last night. However, ever since I implemented this, people that make comments on my page are not appearing on my page. Do you think this could be relational??

Thanks!

7 August 2008 18:22 Nate said...

Hi Amanda!
so this is working great for me!

but for some reason my Google ads are not showing up! in post.

is there something i'm missing?

10 August 2008 02:00 Todd said...

This hack works great for me in Firefox...but when I install it my main page won't completely load in IE....post pages to load fine....any thoughts?

11 August 2008 14:58 G Blogmaster said...

Thanks -- this worked great, but I do notice that when you click, "Read more....", there's an extra blank line in the full post (where I had put the fullpost break). Any thoughts on how to eliminate that?

Thanks so much.

17 August 2008 15:20 { Sweetknottings} said...

Hello Amanda,

Thanks so much for that wonderful ideas you've been sharing to us. Specially to me that is really new into this blogger world. Keep on sharing great knowledge to other people.

20 August 2008 14:24 Loreen said...

thank you! I finally was able to have it correctly. The other sites i've come across didn't give me a correct version. either i made it wrong or i understood it wrong. Anyways, you were being helpful. Kudos.

http://sulat-at-kamay.blogspot.com

24 August 2008 22:31 ProfAvaliação said...

Nice post. Thank you for the tips.

26 August 2008 21:16 Y Rohan said...

I think this code is easy, used for my blog
http://wingsofweb.blogspot.com

get simple code from here

http://crispypapaya.blogspot.com/2008/08/blogger-add-read-more-links-download.html

-Rohan

7 September 2008 19:48 Rabin said...

adeed but full post is hidden only the title of the post is showing

7 September 2008 22:36 Rabin said...

now I'm done
everything is ok

but I'm using rohans link its short and easy

http://crispypapaya.blogspot.com/2008/08/blogger-add-read-more-links-download.html

thanks to all

24 September 2008 08:58 papew said...

hi amanda

it doesn't work for me

please help.

2 October 2008 16:31 blood on the mirror said...

Thanks so much for this tutorial!

I think you need to edit it a bit.

When you told me to make a testing blog post, I thought when you meant "save" you meant "save as draft"

So I was wondering why the post would not show.

Apparently, I found out you meant PUBLISH, which makes more sense.

It might get others confused.

That's all.

THANKS AGAIN!

6 October 2008 15:31 Murthy said...

Hi Amanda,
Great tutorial! It worked first time I used it. I'm loving my blog more now..thanks to you

Goji Berries | GoChi

5 November 2008 15:42 Ms Unreliable said...

I could not for the life of me follow Ramani's instructions to get this hack to work, but I got it first time with yours. Thanks so much for such fantastic tutorials!

30 November 2008 11:25 entrepgirl said...

it won't work with me, please help

17 December 2008 23:32 DerAndre said...

OMG Amanda! Seriously, I love you for this!

19 December 2008 19:58 Shem Banbury said...

just tried it and it works perfectly. However, I would like to show perhaps 200 characters or the first paragraph of the post and then have the 'read more' sign.

Any way of doing this???

Cheers

shem

28 December 2008 19:54 howtonotmakemoneyonline.com said...

Amanda,

I've been using this method since I found it in the blogger help section. I added a little bit to it so that when you click the Read More link, your browser scrolls to the new section so you don't have to scroll past the summary to find where you left off. You can see how to do it at expandable post summaries that scroll to unread section/

Shem,
You can probably come up with a javascript function to do it but that can cause problems. Blogger doesn't publish information on how to only show a portion of the post. I think it might be somewhere and I'm trying to discover where it is if it's there.

3 January 2009 12:27 Agus Tjandra said...

Hello Amanda, Happy New Year

I want to try this trick, but in STEP 6, my HTML template is a little bit different. There is a addition for bookmark between data:post.body line and div style='clear: both;' line

...then what I have to do?
For your information I'm using your free template: "Butterfly template", which is great and I like it. But Is your trick applicable in this template?

please advise me.

regards
Agus
www.agustjandra.blogspot.com

4 January 2009 15:42 Agus Tjandra said...

Hello Amanda, your trick is very good. It's work on my blog.

But I prefer if the "Read More..." line is on right align, can I do that? How?

Thx for your tutorial.

Regards
Agus Tjandra

10 January 2009 11:29 Tiago said...

Excellent hack and very useful! Your instructions work well at the first try — with some insight in the interpretation! :D

Thank you very much!

29 January 2009 06:50 Youth Ki Awaaz said...

That was rather enriching and helpful.

Thanks alot dear.

31 January 2009 23:58 Albert said...

Works perfect, check it out on my 765 dofollow social networks list. It saved hundreds of scrolling time and made the post more convenient, thank you! Check it out here.
http://marketopinions.blogspot.com/2009/01/765-dofollow-social-bookmarking-sites.html

3 February 2009 16:10 Calculus Entropy said...

Everything works, except each of my postings say:

expr:id='"post-" + data:post.id' >

I'm using the Minima format.

Thanks,
Calculus

PS--Whenever I look for hacks, I always seem to end up coming back to your page in the end. Good work!

7 February 2009 08:04 tiquee said...

i m seeing read more at the end of my post what should i do

12 February 2009 14:45 smellyKen.com said...

Thanks for this useful code.

It saves alot of space on my blog and i learnt a new code ^^. Thank you.

18 February 2009 16:37 CroppyCat said...

I get this error as well I think it is this line not written properly. I had


div class='post-body entry-content'
and i changed it to this

div class='post-body' expr:id='"post-" + data:post.id'

Can u please advise? thanks!


"Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
XML error message: Element type "div" must be followed by either attribute specifications, ">" or "/>"."

25 February 2009 08:18 Cindy said...

Amanda,

Thank you so much! Your post is so clear! I got it right on my first try hehe~ Thank you thank you!!

by the way, (i know you're getting so many questions already, sorry) how do you change "read more" to a different font, or a different font size?? I'd just like it to be a bit bigger..

Thanks!!!

25 February 2009 09:36 cabalen said...

Hi,

It worked perfectly to my site right the first time I tried :-). Excellent work. Hopw more tips to come...

6 March 2009 03:58 Mr Simons said...

Hi,

its a great solution, it inspired me to make a quicker solution that can be found here:
http://flashismo.blogspot.com/2009/03/easy-way-to-make-post-summarries-in.html

in this solution you dont have to add the div tags to each post, but instead it fixes the posts height in the front page.
i hope this helps others..

Gideon

9 March 2009 15:41 lily ng said...

hi

it worked ok in my blog but when my friends log in to my blog using other search engine besides explorer, they have all the html codes all on top and the sidebars are all over.

help!!

thanks

13 March 2009 03:36 LASIK Guider said...

Hi Amanda,

Your tips are great...
The hack works fine ..but i want to know how to make the post footer elements(labels, timapstams,...etc) show up only in the full post page and not in the main page after summaries.

Thanks!

19 March 2009 05:30
Anonymous said...

Thanks a lot for the trick.
Your tips and tricks are great...
The hack works fine..........

***** * * * * * * * ***
* **** *** * * * ** *
* * * * * * * * * ***
*
***

21 March 2009 13:18 Radith Prawira said...

@LASIK Guider

I got the same req like you, but somehow i figured it out by reading http://catalog-tutorial.blogspot.com/2007/12/bikin-blog-lebih-dinamis.html , the post's written in Indonesian.

Quite simple actually, it is by hiding the element you wish to. By adding <b:if cond='data:blog.pageType == "item"'> before the element and closed the code using </b:if>

ex : in my blog,

<div class='post-footer-line post-footer-line-1'>
<b:if cond='data:blog.pageType == "item"'> <span class='post-author vcard'>
<b:if cond='data:top.showAuthor'>
<data:top.authorLabel/>
<span class='fn'><data:post.author/></span>
</b:if>
</span>

look at the code's structure

for live demo here's my blog : Thumbshit

--

and i did that per each element i wish to hide.

hope it help,

Radith ^_^

21 March 2009 16:03 bossgu said...

very nice,thanks Amanda,and how to set"Related Posts by Categories",

26 March 2009 16:55 Radith Prawira said...

my comment somehow got filtered out T_T even i didn't do any spam, ( or it is thought as spam, coz i made a live link there?) i'm truly deeply ask for your apology then, i didn't mean that. i just wanna give the live example of what i'd wrote before ( regarding to LASIK Guider's comment

@LASIK Guider

use this code on post footer element you'd like to hide :

<b:if cond='data:blog.pageType == "item"'>

and closed by :

</b:if>

--

p.s : i hope you don't get offended Amanda, just wanna share what i know ,maybe it'll help others like you have help me and millions like me :)

and maybe you'd like to consider using a more reliable comment system as i see several 'anonymous' people spamming your comment section.

best regard, Radith

27 March 2009 19:11 Arun said...

Hey
I can't see the page with jscript header code. It says the permitted bandwidth has been exceeded. Can you please provide an alternative?

2 April 2009 18:45 sauravjit said...

hey there
i need your help and its urgent
check my website http://www.musicnlifestyle.com

there are lots of images on my site in different posts and the blog starts transferring data from photobucket or imageshack(where i used to store my images) even if the post is not open(by using expandable post trick) at my homepage.

how can i sort it out?

7 April 2009 01:50 Cian Prendiville said...

Thank you so much. I have always read posts of people thanking others for there tips, but never understood why people were so thankful. Now i know. I've just spend hours on end trying out different suggestions from accross the internet, none of which worked. Maybe it was that the template i have is weird, or to do with beta or something. But yours worked. I think it is just so thorough, in a sense 'chunky' that it just works no matter what it's used with, where as the others have all been cut down, to make them sleeker but as a result it assume that your posts are called posts, not "post-body entry-content" which I had.

Anyway. Why don't google just add a bloody button in the editing box that does all this at one click!

9 April 2009 07:08 Offrd2001 said...

Amanda,

Your site is the third I have tried for getting the proper code for displaying expandable posts. Ive had nothing but luck wit all your previous hacks. Now this one......its not working. With the other sites codes I was at least getting read more... at the bottom of the full post but with yours Im getting absolutely nothing :( A little help please.

Dave

28 April 2009 01:07
Anonymous said...

I found a simpler solution to adding post summaries that uses PURE CSS (no javascript). It seems to fix a lot of the problems that i was getting with the other solutions. Might be worth taking a look at this solution as well.
http://simplerthanyouthink.blogspot.com/2009/04/blogger-expandable-post-summary.html

1 May 2009 14:01 Who's B? said...

I have been looking everywhere for this information. This was very clearly described and it was accomplished with a breeze. Thank you.

6 May 2009 18:57 tag02.blogspot.com said...

How to make automatic post summary??
see my blog with automatic post summary.
.
.
http://tag02.blogspot.com

9 May 2009 22:05
Anonymous said...

I have used such approach and it worked out till some days ago. Now, nothing happens when you clik on the read more link.

Could be some new java filter or something related to the blogger system?

Thx...

10 May 2009 20:44
Anonymous said...

It worked till for ca. a week the unfold function does not work anymore. Has blogger changed something in hes codes?

11 May 2009 14:09 ARTISHOK said...

Hello,
I had the code working on my blog but a week ago it suddely stopped working. It shows the summaries, but the readmore button does not work. By investigating the problem I can not find the body part of the code, its like it's not there anymore... Any idea how this could happened? Has blogger scanged something?
I can not make it a new, since I cant find where to but the code...

The part of the code before the head is in place, but the rest I cant find.

15 May 2009 17:53 Ali Qayyum said...

i have problem actually,
i already posted 300 posts in my blog
but when i done this code on templetes, this disappeared my posts
what should i do
http://alisoft7.blogspot.com

20 June 2009 07:39 Andreea-Roxana Comanescu said...

Hello, I'm Andreea and I have a problem with the layout. When I try one on the internet, and I copy the html code, I get this error:
"Error mesage XML: The markup in the document following the root element must be well-formed."

I've seen you've helped someone with an similar problem. Pleeeese help me too!

21 June 2009 09:38 Brain Washer said...

Thanks for the detailed explanation, Amanda.

I have noticed one issue with this approach. If my posts contain list elements like "ul" or "ol", the entire post shows up on the main page followed by the "Read more ..". Basically if the text contains lists, everything shows up.

For posts that don't contain lists, it works fine.

Is there any way to fix this?

Thanks

27 June 2009 14:50 cmongood said...

U ARE TRULY THE F-IN BEST!!!! I'VE BEEN TRYNA DO THIS ON OTHER SITES ALLLLLLLLLLL MORNING!!!! I LOVE YOU, YOU ROCK!!!

2 July 2009 13:04 Brain Washer said...

Hello Amanda,

I've posted these comments earlier also but they were not published. Sending them again:

I have tried a few different versions of this 'post summary' approach, but all seem to have one problem. They don't work if the contents within the 'span' elements have list elements like (ul or ol). It works for posts that don't have lists.

Have you seen this problem? Is there any way to fix it?

Thanks.

8 July 2009 12:56 Shivani said...

Hi Amanda,
Great tutorial!!
It worked first time I used it...thanx alot ;)

http://xperiencemedia.blogspot.com

20 July 2009 21:42 paul said...

wow you are amazing. I read 10 different tutorials on how to do this before I found yours....and yours was the only one that did what I wanted! thanks so much!

Now if I could only figure out how to get my header to not appear on my posts...

let me know if I can do anything for you! (seriously)

http://makesomethingcooleveryday.blogspot.com

23 July 2009 06:08 Lahjaetsivä said...

Hi Amanda,
I used this "Ramani's summary" in my blog, worked well (expect one post).

How does summarizing affect on SEO?

Thank you for great tutorials!

25 July 2009 15:34 Mélanie said...

Thank you very much!!

27 July 2009 19:43
Anonymous said...

Brilliant! The most straightforward and helpful directions I've found

10 August 2009 12:50 admin said...

Is great..but I have a question..I can do this trick into a gadget? Because if I can , I want to modify my template into a magazine template..and this trick will be great!!

13 August 2009 04:47 football said...

Thanks for this.I saw someone had same problem like me..when all this you wrote i paste to my template everywhere start to showing up this first line

expr:id="post-" +data:post.id">

what i did to solve this just find again whole block of code and delete that line that was showing and all workd now :-) Thank

Come and see http://footballvideoclip.blogspot.com

15 August 2009 14:30 Brent said...

Hi and thanks for a good solution... at least so far.

Something that may be useful for those pedants who, like me, just can't fathom someone having to find their place reading again... try this:

In the code that you paste into the post body div, there is a piece which forms the link to the fullpost page:

< a expr:href='data:post.url' >.

Instead, change it to this:

< a expr:href='data:post.url + & quot;#more& quot;' >

And just after the < span class="fullpost" > that you put before the hidden portion of your post, add:

< span id="more" >< /span >, and then continue your post as normal, with the final closing tag < /span > at the very end.

Your readers will no longer have to search for the place they left off reading.

Thanks again for a nice solution.

B.

Note: I've added spaces before and after the "&", "<", and ">" marks so that my post could be accepted. If you copy and paste be sure to remove those spaces!

18 August 2009 16:19 Louie said...

wow you are really a lot of help for us newbie bloggers specially in using blogspot you have to learn some tweaks thx a lot!

19 August 2009 11:24 Brad Hill said...

I have a static home page and do not want summary posts. How can I use this hack, but change it to only apply to label and archive pages? I have searched Google but have found nothing. Mahalo for all of your posts. They have assisted me greatly on all of my sites.

26 August 2009 16:41 Sterferson Luiz said...

USEFULL!!! You're the best!

2 September 2009 07:02 David Chambers said...

i added summaries to a new website, "whittaker chambers in books" (http://wcinbooks.whittakerchambers.org/). the summaries work fine with internet explorer and firebox (pc/mac) but "erratically" (usually) not with google's browser on pc, with safari (pc/mac) and with icab (mac). any ideas why i'm getting hit-and-miss?...

12 November 2009 19:52
Anonymous said...

I am having the same issue as David Chambers above, this is not working in Google Chrome browser, or Safari on the PC.

Any Ideas?

29 November 2009 13:43 JAGANDEEP SINGH MANGAT said...

thanks i have done this in my blog
desicracks blogspot com

1 March 2010 12:56 coccxyphil said...

Good tips !
I try to use it on my blog :
http://www.coccxyphil.com/

3 June 2010 01:46 Libella Circinus said...

Thank you very much for it and for the code for the print post only! It's been a long time I wanted to add this to my blog. Best wishes! :)

5 June 2010 23:18
erin said...

Help! I've been using this method for a while now and it works perfectly. I recently updated my template and now it appears on each and every post, even the ones that aren't expandable! Can you help???? Thanks!

Post a Comment

Browse through the Archives

All existing posts are still available to view while I'm working on the site, albeit seen in a much simpler interface. Feel free to browse through the archives to find tutorials, templates and articles to help you build a better blog:

Blog Archive

© Blogger Buster 2010 Home | About | Contact | Hire Me