20 September, 2010
Categorized | Tutorial
Applying Blogger auto read more
12:01 AM
Applying auto read more
Here we go:
- After that, find this line:
- Replace the line with this code:
010203<b:ifcond='data:blog.pageType == "item"'>04<data:post.body/>05<b:else/>06<b:ifcond='data:blog.pageType == "static_page"'>07<data:post.body/>08<b:else/>09<divexpr:id='"summary" + data:post.id'><data:post.body/>div>10<scripttype='text/javascript'> createSummaryAndThumb("summary<data:post.id/>");11script>12<aclass='more'expr:href='data:post.url'>Read more ...a>13b:if>14b:if>15- Click Preview. If it works, then click Save Template.
Customizing the snippet
You can customize the read more by changing the values of the variables below:thumbnail_mode–set to “yes” if you want to show thumbnail with text summary. Set to other than “yes” to show only text summary.summary_img–specify the number of characters (including spaces) you want to show in the summary, with thumbnail.summary_noimg–specify the number of characters (including spaces) you want to show in the summary, when there is no thumbnail.img_thumb_heightandimg_thumb_width-specify the thumbnail height and width (in pixels).- You can change the words “Read more” with your own by changing it in line 12 of the code in step 8.
Subscribe to:
Post Comments (Atom)

0 Responses to “Applying Blogger auto read more”
Post a Comment