+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.
BloggerBlogging Tips

How To Use Meta Tags on Blogger And Other Sites

15 years ago
Blogger

How To Add Google Plus Widget To Blogger

14 years ago

Recent Articles

yunmai massage gun mini 2.
Yunmai Massage Gun Mini 2 Review
BenQ LaptopBar Review: The Accessory I didn’t Know I Needed
teendow g20
Teendow Robot Vacuum G20 Review
Yunmai EasePro Massage Gun 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
How to Use WhatsApp on an iPad
Things to Consider When Buying a MacBook
programmer
Learning to Code: A Comprehensive Guide for Beginners
identity thief
How to Efficiently Prevent Identity Theft

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