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:
01
02
03
<
b:if
cond
=
'data:blog.pageType == "item"'
>
04
<
data:post.body
/>
05
<
b:else
/>
06
<
b:if
cond
=
'data:blog.pageType == "static_page"'
>
07
<
data:post.body
/>
08
<
b:else
/>
09
<
div
expr:id
=
'"summary" + data:post.id'
><
data:post.body
/>
div
>
10
<
script
type
=
'text/javascript'
> createSummaryAndThumb("summary<
data:post.id
/>");
11
script
>
12
<
a
class
=
'more'
expr:href
=
'data:post.url'
>Read more ...
a
>
13
b:if
>
14
b: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_height
andimg_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