Blogger automatic read more

The default Blogger template don’t have the auto read more future, unless you put it by yourself using “insert jump break” in your blog new post. Now I will guide you how to do it automatically.

Log in to Blogger, go to Layout -> Edit HTML, and mark the Expand Widget Templates box.
Now find (CTRL+F) this in the template code:

And immediately ABOVE/BEFORE that, paste this code:
<script type='text/javascript'>var thumbnail_mode = &quot;no-float&quot; ;
summary_noimg = 500;
summary_img = 450;
img_thumb_height = 100;
img_thumb_width = 120;
<script src='' type='text/javascript'/>

You can edit the numbers in red, if desired. If a post does not have photos, the length of the summary is 500. If a message contains image and text length will be 450, and the first image displayed will have the following dimensions:
width= 120, and
height= 100.

Once again in the template, find (CTRL+F) this:

Then REPLACE that line, with this code:
<b:if cond='data:blog.pageType == "item"'>
<b:if cond='data:blog.pageType == "static_page"'>
<div expr:id='"summary" +'>
</div><script type='text/javascript'>
<div style='clear: both;'/>
<span class='rmlink' style='float:right;padding-top:20px;'><a expr:href='data:post.url'> Read More... <data:post.title/> </a></span></b:if></b:if>

You can edit the blue words above with your own words or you can place a picture. by putting this link:

<img src="Your-Picture-link" />

Save the template and ready to see the effect by clicking “View blog”.


Technorati Tags: ,

No comments

Powered by Blogger.