Friday, July 30, 2010

Blogger : How to add READ MORE on your blog





1. Design > Edit HTML and check Expand all Widget.


2. Find </head> then REPLACE it by below.

<script type='text/javascript'>
var thumbnail_mode = &quot;float&quot; ;
summary_noimg = 230;
summary_img = 140;
img_thumb_height = 100;
img_thumb_width = 100;
</script>
<script src='http://hackublog.googlecode.com/files/excerpt.js' type='text/javascript'/>
</head>

3. Find <data:post.body/> then REPLACE it by below.

<b:if cond='data:blog.pageType == &quot;item&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>





MIDIFICATION :
summary_noimg = 230; is first 230 characters show before READ MORE.
img_thumb_height = 100; and img_thumb_width = 100; is size of THUMBNAIL PICTURE.





No comments:

Post a Comment