Saturday 21 April 2012

Cara membuat Read More Otomatis di Blog



   1. Login ke Blog anda
   2. Buka halaman design > Edit HTML > centang Expand template widget
   3. Cari kode </head> gunakan CTRL + F untuk mempermudah pencarian
   4. Paste kode berikut tepat dibawah </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://script-bamz-us.googlecode.com/files/read-moreotomatis.js' type='text/javascript'/> 

   5.Selanjutnya cari kode <data:post.body/> atau <p><data:post.body/></p>  ( seperti biasan gunakan CTRL + F untuk mempermudah pencarian. Jika ditemukan 2 kode yang sama, gunakan atau ganti yang pertama.   Jika sudah ketemu silahkan anda ganti kode tersebut dengan kode dibawah ini :
 
<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 src="http://lh3.ggpht.com/_kTaFrEr_318/SkKGIoU-oPI/AAAAAAAAA9g/5A_nTHvFgiI/readmore_thumb%5B2%5D.gif"></img></a></span>   </b:if>   <b:if cond='data:blog.pageType == &quot;item&quot;'><data:post.body/></b:if>  

6.Save template dan lihat hasilnya










No comments:

Post a Comment