make readmore automatically on the blog - Ash Princess Kawaii
Breaking News
Loading...
26 Desember 2011

make readmore automatically on the blog

Desember 26, 2011
Cara membuat read more otomatis pada blog

Read more on the blog is very important for us to show. In addition to making our blog more presentable but also concise. If you want to add your blog to the blog read more automatic,

1. template and find code </head>
2. put this code above the </head>

<script type='text/javascript'> var thumbnail_mode = &quot;no-float&quot; ; summary_noimg = 430; summary_img = 340; img_thumb_height = 100; img_thumb_width = 120; </script> <script src='http://projectloss.googlecode.com/files/read-moreotomatis.js' type='text/javascript'/>

3. Find <data:post.body/> The second code. Replace it with this code.

<b:if cond='data:blog.pageType != &quot;item&quot;'>
<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>
<span class='rmlink' style='float:right;padding-top:20px;'>
<a expr:href='data:post.url'>Read More..</a></span>
</b:if>
<b:if cond='data:blog.pageType == &quot;item&quot;'><data:post.body/><br/>
</b:if>
The code above is a link readmore button, if the button with an image readmore, the following code.

<b:if cond='data:blog.pageType != &quot;item&quot;'>
<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>
<span class='rmlink' style='float:right;padding-top:20px;'>
<a expr:href='data:post.url'><img alt='Read More..' src='http://images.cooltext.com/2342358.png'/></a></span>
</b:if>
<b:if cond='data:blog.pageType == &quot;item&quot;'><data:post.body/>
</b:if>
Do not forget to save the template.

0 Comments:

Posting Komentar