Posted by : Unknown Tuesday, February 3, 2015

  1. Masuk ke Akun Blog
  2. Kemudian Pilih Design - Template -  Edit HTML
  3.  Kemudian cari kode </head> untuk mempermudah tekan (Ctrl-F) untuk mencari kode tersebut
  4.   Setelah itu masukan kode berikut diatas kode </head> 
      <script type='text/javascript'>
var thumbnail_mode = &quot;float&quot; ;
summary_noimg = 140;
summary_img = 130;
img_thumb_height = 70;
img_thumb_width = 121;
</script>
<script type='text/javascript'>
//<![CDATA[
function removeHtmlTag(b,a){if(b.indexOf("<")!=-1){var d=b.split("<");for(var c=0;c<d.length;c++){if(d[c].indexOf(">")!=-1){d[c]=d[c].substring(d[c].indexOf(">")+1,d[c].length)}}b=d.join("")}a=(a<b.length-1)?a:b.length-2;while(b.charAt(a-1)!=" "&&b.indexOf(" ",a)!=-1){a++}b=b.substring(0,a-1);return b+" [...]"}function createSummaryAndThumb(d){var f=document.getElementById(d);var a="";var b=f.getElementsByTagName("img");var e=summary_noimg;if(b.length>=1){a='<span style="float:left; padding:0px 10px 5px 0px;"><img src="'+b[0].src+'" width="'+img_thumb_width+'px" height="'+img_thumb_height+'px"/></span>';e=summary_img}var c=a+"<div>"+removeHtmlTag(f.innerHTML,e)+"</div>";f.innerHTML=c};
//]]>
</script>

contoh seperti gambar

       5.     Setelah itu cari kembali kode <data:post.body/>
   6.  Dan ganti kode tersebut dengan kode sintaks dibawah ini

<b:if cond='data:blog.pageType != &quot;item&quot;'>
<b:if cond='data:blog.pageType != &quot;static_page&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:left'> <a expr:href='data:post.url'><b>Readmore</b> &#8594; <data:post.title/></a></span>
</b:if></b:if>
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<data:post.body/>
</b:if>
<b:if cond='data:blog.pageType == &quot;static_page&quot;'><data:post.body/></b:if>

contoh seperti gambar

8.  Setelah itu simpan Template dan rasakan perbedaannya

Terima kasih



Leave a Reply

Subscribe to Posts | Subscribe to Comments

Popular Post

Design by Rian. Powered by Blogger.

Search This Blog

Contact Form

Name

Email *

Message *

Like

Followers

Flag Counter

Entri Populer

- Copyright © Cara -Metrominimalist- Powered by Blogger - Designed by Johanes Djogan -