Sabtu, 23 April 2011

Cara Menyingkat Postingan (Read More)

by Doni Masrul

Read more untuk mempersingkat sebuah postingan sehingga tidak kelihatan memanjang kebawah, untuk membuat Read more ikuti langkah² sebagai berikut:

  • Silahkan Masuk Ke Dasbor
  • Lalu Klik Rancangan
  • Edit HTML lalu centang kotak expand template widget

Lalu cari kode </head> kemudian masukkan script di bawah ini persis dibawah kode tersebut.

<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://rizqi.moehamed.googlepages.com/read-moreotomatis.js' type='text/javascript'/>

Selanjutnya, cari kode html berikut ini:

<data:post.body/> atau <p><data:post.body/></p>

Ganti kode tersebut dengan kode di bawah 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' target='new'><span style='color: rgb(255, 0, 0);'>&#187;&#187; <span style='font-weight: bold; font-style: italic; font-family: webdings;'>READ MORE..</span></span><span style='color: rgb(255, 0, 0);'/></a></span>
</b:if>
<b:if cond='data:blog.pageType == &quot;item&quot;'><data:post.body/></b:if>


Kemudian klik simpan template.

Sumber: http://donimasrul.blogspot.com/2011/04/cara-menyingkat-postingan-read-more.html

Related Post:

1 komentar:

Exo Aditya mengatakan...

trus habis gitu gimana ?

:10 :11 :12 :13 :14 :15 :16 :17
:18 :19 :20 :21 :22 :23 :24 :25
:26 :27 :28 :29 :30 :31 :32 :33
:34 :35 :36 :37 :38 :39

Posting Komentar