Skip to main content

Automatic Read More With Thumbnails for Blogger

Add Auto Read More Post Summarys with tumbnailBlogger gives us an option to add jump break to posts. It enables us to display a a short summary of the post on the homepage of our blog with a link to the full post. Most of us add jump break to our posts, because displaying a short summary instead of the full post on the main page has many advantages. The main reason is that it increases page views and the visitors can easily get a selection of your posts.

Today I'll share with you a simple script that’ll automatically create a summary of posts and display it on your homepage without using the jump breaks. See the features of it below:
  • Short summary with a read more link to the complete post.
  • Automatically creates a thumbnail from the first image of the post.
  • You can change the number of characters in the summary
  • You can adjust the thumbnail size.
  • Will work on you old posts too.

Adding Automatic Read More to your Blog

  • Navigate to Blogger > TemplateSnap_2013.11.16_10h43m57s_001_
  • Now in the Template editor search for </head>
  • Copy the below code and paste just above or before </head>
<script type='text/javascript'>
var thumbnail_mode = "no-float" ;
summary_noimg = 430;
summary_img = 340;
img_thumb_height = 120;
img_thumb_width = 120;
</script>
<script type='text/javascript' src='https://dl.dropboxusercontent.com/s/yao8g2f0ue0z0tk/bloggslab-auto-readmore-for-blogger.js' ></script>


NOTE:
  • summary_ noimg= 430; – No. of characters in the post summary if no thumbnail image is available.
  • summary_img = 340;  - No. of characters in the post summary if there is an image in the post that’s to be used as the thumbnail.
  • null_thumb_height = 120; – Thumbnail height in pixels.
  • null_thumb_width = 120; – Thumbnail width in pixels.
NOTE 2: If the post has no image only the post summary would be displayed.

  • Now search for <data:post.body/>
  • Replace <data:post.body/> with the below code
<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 class='rmlink' style='font-weight:bold;padding:5px;float:right;text-align:right;'><a expr:href='data:post.url' >Read more ... </a></span>
</b:if>
</b:if>
NOTE: You can change Read more ...  with any text you’d like. For example you can use ‘Continue Reading; or ‘Read full Post".
That’s it. Now save the template.

Comments

Popular posts from this blog

Responsive Recent Posts Slider Widget for Blogger

Here is one amazing responsive featured post slider for your blogs. This slider is Here i am with a fully automated featured posts slider for blogger blogs. This widget features a complete responsive design and is coded to fetch the most recent posts automatically from your blog. Yes i said fully automated, you only need to add your blog url in the code.

Design a Fancy Accordion Widget For Blogger

Accordion widgets are really helpful in organizing links in your blog. You can use it to list out popular posts in categories in the form of an expandable and collapsible menu. It is an effective and neat way of listing longs list of links.