+321 123 4567
info@test.com
  • Home
  • My Services
    • Web Design
    • Web Development
    • Technical Writing
  • Portfolio
  • My Thoughts
  • Free Tools
    • Photo Editor
    • Avatar Generator
    • Email Migration Tool
    • QR Code Generator
    • RSS to HTML Converter
    • IP Address Geolocation
    • Base64 Image Encoder
    • NATO Translator
    • All Tools
  • Contact
Home
Blogger
How To Add Automatic Post Summary For Blogger

How To Add Automatic Post Summary For Blogger

Wale Adekile
November 24, 2010

If you’re not using one of those magazine style template, you might not like the way your blog posts show full length on your homepage. It might give your blog some kind of awkward look especiall if you are having very long posts. It makes your blog pages and search results extra long.
You can however add auto post summary to create a “Read More” link beneath your blog posts, just like the one I use here. Let’s get started
First download and back up your template in case something goes wrong.


1. Go to “Design” and select “Edit HTML”

2. Check the box labelled “Expand Widget Template”

Press CTRL + F, then search for this code:

</head>

3. Now, just above this paste this code:

<script type='text/javascript'>
var thumbnail_mode = &quot;float&quot; ;
summary_noimg = 530;
summary_img = 440;
img_thumb_height = 120;
img_thumb_width = 100;
</script>
<script src='http://caprio.googlecode.com/files/post%20summary.js' type='text/javascript'/>

4. Now look for:


<data:post.body/>

5. Completely replace this with:

<b:if cond='data:blog.pageType == &quot;item&quot;'>
<data:post.body/>
<b:else/>
<b:if cond='data:blog.pageType == &quot;static_page&quot;'>
<data:post.body/>
<b:else/>
<div expr:id='&quot;summary&quot; + data:post.id'>
<data:post.body/>
</div>
<script type='text/javascript'>
createSummaryAndThumb(&quot;summary<data:post.id/>&quot;);
</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 save your template:

The auto summary is now seen on your homepage, label pages, search results and archive pages.


Previous Post
An Easy Way To Capture Screenshots On Your PC
Next Post
Five Major Tweaks For Your Blog
Wale Adekile
Husband to the world's most beautiful woman and father to two awesome kids. A nerd, obviously; also, a technical business analyst, a web designer who preaches the gospel of WordPress, and a writer. You can check out my published books on Amazon.
author bio widget for different authors on blogger / blogspot
Blogger

Author Bio Widget For Multiple Authors (for Blogger/Blogspot)

14 years ago
Blogger

How To Open Links In New Tabs (Blogger/Blogspot)

14 years ago

Recent Articles

wahl rapic clip hair clipper
Wahl Rapid Clip Hair Clipper Review: DIY Made Easy
BenQ LaptopBar Review: Luxury or Necessity?
yunmai easepro unboxed
Yunmai EasePro Massage Gun Review
g20
Teendow G20 Robot Vacuum and Mop Review
bathroom
Dear Men, Spraying All Over the Toilet Seat is Disgusting and Irresponsible
winx mediatrans
How to Transfer Photos from iPhone to Computer Without iTunes
google workspace
How to Migrate Emails From Google Workspace/G Suite to cPanel
synology diskstation ds920+
Synology DiskStation DS920+ Review
playstation 4
Why I haven’t Upgraded to the PlayStation 5 Yet
pain
Started Watching Anime as an Adult? You’re Not Alone

All contents on this blog are copyright protected and cannot be reproduced on other websites without permission.

Copyright © 2022 – NerdieDad | Home | Contact | About | Privacy Policy