26 Mei 2009

CARA MEMBUAT READ MORE DI BLOG



Sekiranya artikel yang kita tulis panjang, kita boleh memendekkannya dengan menggunakan fungsi read More. Penggunaan Read More bukan sahaja menjadikan blog kelihatan lebih kemas dan menarik, tetapi juga memudahkan pelawat untuk memilih artikel yang ingin dibacanya.

Sebenarnya terdapat banyak cara untuk membuat Read More dalam blog. Tetapi saya rasa cara inilah yang paling mudah. Cuma ikut langkah-langkah yang akan saya terangkan di bawah..ok

1. Login > layout > Edit Html (jangan lupa tandakan pada 'expand widget template')

2. Cari kod ini
<div class='post-body entry-content'> di bawahnya ada kod ini
<p><data:post.body/></p>

3. Gantikan kod <p><data:post.body/></p> dengan kod di bawah ini

<b:if cond='data:blog.pageType == "item"'> <style>.fullpost{display:inline;}</style> <p><data:post.body/></p> <b:else/> <style>.fullpost{display:none;}</style> <p><data:post.body/></p> <a expr:href='data:post.url'>Read More......</a> </b:if>


p.s. tulisan Read More boleh diubah seperti Baca Selanjutnya, Teruskan Membaca ...dan lain-lain lagi mengikut selera anda.

4. Save Template

5. Pergi pula ke Settings > Formatting.

6. Masukkan kod di bawah ini ke dalam Post Template

<span class="fullpost"> </span>

7. Save Setting

8. Setelah itu pergi ke posting anda.Pilih menu Edit Html bukannya Compose.Akan kelihatan kod
ini <span class="fullpost"> dan juga </span> jangan delete kod tersebut
(kod tersebut penting)

9. Tulis segala artikel yang hendak ditampilkan pada halaman utama di atas kod <span class="fullpost">, dan yang tak mahu kelihatan diantara <span class="fullpost"> dan </span>

Contohnya seperti ini

Many people on the web today are making a great deal of money by writing blogs. There are a few ways to make money via a blog. Google AdSense can be placed on blogs which will show ads based on the content of your blog. You can also place banner ads on a blog which also brings money in. One of the most popular ways of making money through a blog is through hyperlinks. You will all of these methods put into place whenever you read a blog. <span class="fullpost"> (pada bahagian ini post akan dipenggal)
The first thing to do is to start a blog. If you are not a good writer or have no idea what to blog about, just choose a topic you have an interest in. For example, if you have a favorite television show that you watch, you can blog about it. If you have a favorite food or restaurant, you can start a blog about where to find such food. The key is to choose a topic which you know a lot about and can give a great deal of information about.</span>

Ini hasilnya

Many people on the web today are making a great deal of money by writing blogs. There are a few ways to make money via a blog. Google AdSense can be placed on blogs which will show ads based on the content of your blog. You can also place banner ads on a blog which also brings money in. One of the most popular ways of making money through a blog is through hyperlinks. You will all of these methods put into place whenever you read a blog.Read more..

Tiada ulasan:

Catat Ulasan