Recently, I have added the 'read more' expandable post for my blog (as you can see below every posts). And a real life friend of mine, Jimmy Wong from SoftDigitals has asked me about this hack. This has come up to my mind. Instead of replying this in private chat, it is better to make a post here to share it with everyone.
Now, why the heck do we need this expandable post view hack for Blogger or BlogSpot blogs? Simple answer is that when you have long post and showing a lot of post on your blog's main page, your visitors will have to scroll down a lot to find what they want to read. So instead of showing full contents, you can show only summaries on your blog's main page. Another reason why we need this hack is that it may help us, Blogger or BlogSpot users to reduce our bounce rate if we are going for better site rankings.
Before we begin, please make a backup copy of your current template first, in case you want to revert to the old template.
Now search for <data:post.body/> tag and paste the following codes AFTER the <data:post.body/> tag.
Save the template.
Okay we added necessary codes to our template, now we need to edit settings of the blog.
Save the settings and you are done!
Note: If you want to add this hack to your existing posts, just browse to the the post which you want to edit and select Edit HTML tab, add the <span class="fullpost"> below your summary and </span> at the end of your post. Enjoy this hack!
If you like this post, please consider subscribing to my feed or share this to the world. Thank you.
Now, why the heck do we need this expandable post view hack for Blogger or BlogSpot blogs? Simple answer is that when you have long post and showing a lot of post on your blog's main page, your visitors will have to scroll down a lot to find what they want to read. So instead of showing full contents, you can show only summaries on your blog's main page. Another reason why we need this hack is that it may help us, Blogger or BlogSpot users to reduce our bounce rate if we are going for better site rankings.
Before we begin, please make a backup copy of your current template first, in case you want to revert to the old template.
- Login to your Blogger account.
- Select on Layout tab.
- Select on Edit HTML sub tab.
- Click on Download Full Template
<style>
<b:if cond='data:blog.pageType == "item"'>
span.fullpost {display:inline;}
<b:else/>
span.fullpost {display:none;}
</b:if>
</style>
<b:if cond='data:blog.pageType == "item"'>
span.fullpost {display:inline;}
<b:else/>
span.fullpost {display:none;}
</b:if>
</style>
Now search for <data:post.body/> tag and paste the following codes AFTER the <data:post.body/> tag.
<b:if cond='data:blog.pageType != "item"'>
<span>
<a expr:href='data:post.url' style='color:#0000FF; text-align:right; font-weight:bold; text-decoration:none;'>Read more...</a>
</span>
</b:if>
<span>
<a expr:href='data:post.url' style='color:#0000FF; text-align:right; font-weight:bold; text-decoration:none;'>Read more...</a>
</span>
</b:if>
Save the template.
Okay we added necessary codes to our template, now we need to edit settings of the blog.
- Select on Settings tab.
- Select on Formatting sub tab.
- Scroll down to the Post Template and paste the following codes into the text box.
Type your summary here.
<span class="fullpost">
Type rest of the post here
</span>
<span class="fullpost">
Type rest of the post here
</span>
Save the settings and you are done!
Note: If you want to add this hack to your existing posts, just browse to the the post which you want to edit and select Edit HTML tab, add the <span class="fullpost"> below your summary and </span> at the end of your post. Enjoy this hack!
If you like this post, please consider subscribing to my feed or share this to the world. Thank you.
![]() |


I wish to welcome those who visits to my blog. I am now 23 years old, a chinese guy borned in Penang - Pearl of Orient, an island in Malaysia. Everyone calls me Kevin.

34 comments:
Thanks. Its a great addition. Is there a way to make it collapse again or easily get back to the front page.
does this work when viewing your blog using the Firefox browser?
Colin: You mean a collapse function like what I have on this blog? From what I know, linking the "Read more" to our actual post pages will help reduce our bounce rate. As for the back to front page, you can always make a link to your front page at the bottom of your post message. I'd be happy to show you the codes to include in your template if you don't want to add one manually to all your posts. Just let me know.
Missy Blankenship: Yeah it works perfectly on almost all browsers. I've tested it with Firefox, Internet Explorer and Safari and got no problem. Firefox is the primary browser that I use to blog on.
Great hack, but it doesn't work my Blogger Adsense template for some reason. the head tag can't be found. I'm about to seek out a new layout anyway, and I'll be back with my problems then. Thanks for posting this!
Hi Angel Navedo. Did you mean the template on your "Heavy Writes the Pen" blog? I could find the </head> within your blog. Did you try to enable the Expand Widget Templates check box?
I did eventually get it to work. Thanks!
Now I'm having trouble getting it to work on a post where I have bullets. If you scroll down a bit to my "5 things that need to stop..." article, you'll see it's not going through.
I noticed that you've changed the template. This one looks good!
I've viewed the sources of the post and would like you to try changing the bullets code to this one:
<ul><li>Message goes here.</li></ul>
Currently it's showing as <ol> if you edit your post under Edit HTML tab.
Try changing the <ol> and </ol> to <ul> and </ul> to see if it works.
Also, look for the </span> code at the bottom of your post and move it to the last line under your </p>.
Let me know if it works. If it does not work, I guess the side line showing on the left of your bullet messages is the bullet design style for your template.
Would you mind showing me the URL of your template, I'll give it a check.
I think I found your template. Is it Funky Zine from BloggerTricks? Too bad they're not doing a demo for bullet messages. Only thing you can do now is try the solution as said above or install a new template (I know it's a pain LOL).
Great tip, thanks!
I have a problem, tough. Even when I don't use the "span class="fullpost" /span" code in a post, the "Read More... ("Leia Mais... in Portuguese")" appears at the end of the post when it's published. Is ther any way of removing it from certain posts while keeping it on others?
The blog in wich the problem occurs: www.tvemserie.blogspot
Hmm... I've checked your blog. Can you tell me which post has no <span class="fullpost> and </span>?
By the way there's a bug with this hack for the new Blogger/BlogSpot. Some older posts showing on the "Older Post" page will show the Read more even if the post has no <span class="fullpost">. This is a known bug. I'll try to find out a way to fix this problem.
At the moment, I can only suggest placing the <span class="fullpost"> at the end of your post if you want to show full articles to your readers.
This post ,i.e., has no span class="fullpost" and /span, and it still shows the "Leia Mais... "(Read More...) at the end.
http://tvemserie.blogspot.com/2008/07/atriz-de-oc-em-pushing-daisies.html
I checked your post, it seems ok in the HTML codes. Too bad I can't check your XML coding. I'm not sure whether it's the bug I mentioned above or something goes wrong in the template XML coding.
To HMJ:
Try adding (in tag form, i.e. replace brackets with angular brackets; note single quotation mark at the end of /span)
(span class="fullpost")(/span")
at the end of your HTML. Might just do the trick.
Hey LQ, this is a good trick. It might just fix the problem. Thank you.
Hi Kevin,
I tried using the code, but both the times I got the following error on blogger: bX-ivzkql
PLease help me out! Thanks :)
Heya Coco, the BX error codes are a known issue of Blogger which is noticed. This sometimes happens when you're editing the layout or HTML template. You may report the bug to Blogger here:
https://spreadsheets.google.com/viewform?key=pDGYK68-cO4sA0J2wa9fYBQ
The only solution I worked out is to logout, and relogin again to edit the template. Hope this helps.
Oh and by the way I'm seeing some delicious foods on your blog. They make me drool! So you're into bakery huh? You got a lot of recipes!
Hi Hélcio, try only putting
span class="fullpost" (with brackets)
at the end without the closing /span
Had the same problem, this worked for me and I hope it works in your blog
Hi,
This is a great hack! Not hard to modify at all. And I'm relatively new to this. But it is finicky when it comes to posting. Or maybe I'm just missing a trick here that's easier than what I'm doing.
What I found was this requires fairly clean HTML postings. WYSIWIG posting, especially with photos and videos, leaves all sorts of artefacts behind as you edit where corresponding opening and closing HTML aren't always where you'd expect.
Putting -span class="fullpost"- in the wrong place can cause all sorts of mayhem, especially if you have multiple commands across different groupings. Blogger tells you where the orphan command is, but finding the errant correspondent and inserting it in the right place can get really tricky.
I found pairings of -span class="fullpost"-, -/span-, were inserted automatically throughout the HTML within the HTML "break" I put in, wherever previous group edits were made.
Finding them and cleaning them up is a royal p.i.t.a. because groupings often overlap, cross-over, and combine as you WYSIWIG your post.
What I found was most of the post would still show up in the excerpt with what seemed like just an arbitrary bite out of it. Other times it would leave huge swaths of blank space between the "break" and the "read more..."(I have some long posts in my blog).
Unless there's an easier way of avoiding this, my advice is to keep your posts as clean as possible, i.e. DON"T grab things together to edit if you don't have to (open and close commands locally, not globally), or you'll waste a lot of time trying to figure out why your post breaks so weird.
Just imho here. This isn't a complaint in the least. I'm just offering up observations that I hope might help others to use this hack.
If there's an easier way, I'd love to hear it. But I'm getting to be really good neatnik with my HTML so it's not a bad thing at all, bonus lesson. :)
That said, I do have a question. I'd like my "Full Post..." to appear at the bottom right, not bottom left. The command line does say align:right, but it doesn't do that. I tried changing it to "left", and "center", but it doesn't change anything.
Can this be adjusted easily, or is something else in my template causing this to happen? I'm using a blogger Minima classic template that I've tweaked quite a bit.
Thanks. And thanks for the great hack too!
i did it exactly as you said - checked it over about three times - and it doesnt work. Can you tell what i did wrong?? HELP!
i think zeke just answered my question! i have alot of pictures and edits in my posts so maybe its really messing up the script. the read more still always ends up at the very end of the post. i guess i should clean it up like zeke suggests. thanks zeke
Hey zeke, sorry for the late respond. Blogger's expandable post hack is lack of something, compared to the WordPress's expandable post. There's no way to use this hack within a paragraph like WordPress. The <span class="fullpost"> works only on the next paragraph/line of our post.
Also, I agreed with you that we don't grab things together and to edit the codes after drafting the entire post. That's gonna be a pain doing this at the last step.
In my opinion, when we have some HTML tags that need to be inserted to a post, I suggest we use the WYSIWYG editor to draft the message first and add in the tags afterwards under HTML editor. I never use the WYSIWYG editor though, as I'm an HTML freak and I find that posting under HTML editor all the time is much more easier for me, and the alignments or line breaks are more accurate. So I'd suggest posting under HTML editor if you know HTML well.
I see you're tweaking your blog template too. Well, if you wanna align the read more or full post link into the right, try adding <div style="text-align: right;"> BEFORE the <b:if cond='data:blog.pageType != "item"'> tag and also add </div> AFTER the </b:if> tag in your template.
If it does not work, try adding BEFORE the <span> tag and AFTER the </span> tag.
Hope that helps.
Hi justcooldesign, the script may be messed up when there're a lot of HTML tags in the post especially when there're multiple <span> tags or alignment tags. Well, it's good to see that commentator here is helping too! Thanks zeke!
hi kevin, i moved it to the center like you taught zeke (he wanted it right). i also made the text larger by adding h3 tag and also changed the color. so check it out! im very happy with it - now i just have to work on all the messy tags.
thanks kevin your instructions were awesome!!!
Hello Wendy. I'm really glad that this helps. I'm tweaking all these not to show off my skill, I just wanna prove that Blogger isn't really that bad as described by some people and to prove that sometimes we can tweak Blogger to be as WordPress.
By the way nice blogs you have! I like those pictures posted on your 'Just Cool - Adventure In Design' blog, they're so creative! Nice sharing.
Also, there's a lot of art paintings on your 'Wendy Presseisen Folk Art Paintings Prints Writing' blog. You did all these? You're such a talented person in art and design!
Hi Kevin,
Thanks for the reply. Adding the code before and after the -span- codes worked like a charm. And yes, wordpress does have a much better version of this than blogger in its native templates. I'm trying a wordpress test blog a the same time.
The "Read More" appearing all the time isn't ideal but it's not the end of the world either. I changed mine to "Full Post" with no "..." and I add code for ">>>>>" to appear immediately above it for extended posts only. It's not ideal either because once you click through, the ">>>>>" is still there. But it doesn't click so it's maybe a bit less annoying for readers.
Besides I figure if anyone actually gets through my longer posts, they've pretty much had enough by the time they get to the ">>>>>" anyway. :)
I'm also finding out exactly as you're saying about the HTML and using the WSYWIG less and less. I pretty much use it to just insert vids and pix now. And as you say, I only add the "Read more" after I finish the entire post, much easier, and less messy.
This may help some readers too. I leave BIG gaps between pix/vid/text bits in my posts as I'm forming them, using several return breaks between. It really helps when you need to find errant HTML code especially the -/div-, -/span- commands that Control-F isn't much help with given how many there are. So leave BIG gaps as you write, then just close up the gaps - in the HTML preferably - when you're done.
Glad to hear some of your readers found my observations helpful. This is such a helpful hack for bloggers like me who like to just blather on every now and then. :) And it's not hard at all with a little patience.
And thanks for the help with the right align too. Worked like a charm. Keep up the good work. I'll be back for more I'm sure.
zeke
PS.
Wordpress does have some better features, and its "excerpt" feature is more intuitive. But it's still susceptible to WYSIWIG messes and needs tidying up just like blogger. I'm test-driving a wordpress blog (identical to my blogger for fair comparison).
So far I'm stilling liking blogger, especially with great hacks like yours to help out.
I was a WordPress user and then switched to give Blogger and try. I always believe that there are still many tricks that we can use to tweak Blogger but that's too time consuming to figure out and to play with the codes. I've to admit that WordPress an easy to use blogging platform and it's powerful with its various plug-ins.
Once I've done all the tweaks I want for my Blogger blog, I'm gonna switch back to WordPress and see what I can do with it.
Perhaps WordPress is by far the most 'profitable' blogging platform for those make money online bloggers.
Hi all,
there are many interesting comments from Kevin Tan and the other bloggers. I have posted this method in my blog http://easyadsensevn.blogspot.com
However, I know one more interesting method to add the "Read more" hack in the blog, it works automatically for all posts. You can see here:
http://easyadsensevn.blogspot.com/2008/09/how-to-add-blogger-read-more-expandable_02.html
Please visit and leave your valuable comments.
Thanks.
Hi EasyAdsenseVn,
I checked out your new method and it's great that you're offering it. But I think the issue isn't that the "Read More" hack isn't automated enough. It's that the people who tend to want it only want it on-call, not full-time.
Wordpress offers it as a WYSIWIG in its edit window which allows the writer to use it or not per post. It think that's the hack we're all looking for, even if it's HTML code to insert per post, rather than through the template.
If there was a hack that was neither too long nor too complicated, I think you, or Kevin, will have hit the Holy Grail of the "Read More" quest, but "per" post HTML, not "all" posts HTML.
I'll post this comment on your site as well and check back for new developments.
And thank you Kevin for providing a forum for this dialogue to happen.
zeke
Hi Zeke,
thanks for your comment. I have answered in my blog. I know one more method to add "Read more" keeping the representative picture of the post. You can visit my blog to read and leave comments.
All the best!
Nice info and thanks for sharing this trick. This half-automated read more hack does help when a blog author has bunch of existing long posts in his/her blog and don't wanna add the <span class="fullpost"> into the messy codes of every single post. However, it's not fully automated though.
Without a doubt, WordPress does the best on the "Read More" part. We, as a Blogger user, are still looking for a way to tweak Blogger better on the "Read More" hack just like WordPress.
If you guys happen to find a better way to tweak this, please share it with me!
Thanks to all, and Zeke! :)
I have posted here a comment, however I don't know it does not appear.
I post again. :-D
@Zeke: I have answered you in my blog. And I have a new post there about adding Read more, keeping the representative picture. I'm still looking for the solution of the automatically problem in adding Read more :-D
@Kevin: Thanks for your comment in my blog, and thanks for your host here to discuss about this topic. You were true when you said that: the method that I have introduced is just "half-automatic"!
Hello Kevin, I have the same problem as someone else mentioned above too - this hack doesn't work for posts that have 'ul' or 'ol' (list) elements.
Do you know of a way to fix this?
Thanks
Post a Comment