This article will teach you how to make a read more in a post, so that your article will not show fully, but only one paragraf or two, and for the rest content, your reader can click read more.
1. Open Layout - Edit HTML, tick Expand Widget Templates
2. Find this part (or like this part) in the code :
3. Copy this code after above code.
<div class=’post-header-line-1′/>
<div class=’post-body’>
<b:if cond=’data:blog.pageType == “item”‘>
<style>.fullpost{display:inline;}</style>
<p><data:post.body/></p>
<b:else/>
<style>.fullpost{display:none;}</style>
4. After that, find this code
<p><data:post.body/></p>
<div style=’clear: both;’/> <!– clear for photos floats –>
</div>
5. Copy this code between them
<a expr:href=’data:post.url’>Read More .. </a>
</b:if>
6. Check again, now your code should look like this :
<div class='post-header-line-1'/><div class='post-body'>
<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>
<div style=’clear: both;’/> <!– clear for photos floats –>
</div>
7. Save the template, now we need to change the template for posting a message. Go to Setting, Formatting and find Post Template, fill the content with this code :
<span class=”fullpost”>
</span>
8. Don't forget to save. OK Done.
Now if you write a new post, go to Edit Html (next to Compose Tab), you will see the code (no 7). Write your content that you want to show in front page above the span tag and the rest of your article in between span and /span.
Hopefully you can success to implement this, no waranty from me, do at your own risk ;)
PS: if you try to change the template code and you get error when save your work, don't panic, just try to change the quotation mark (single with single and double with double, because the symbol has changed)
This entry was posted
on Friday, May 9, 2008
at Friday, May 09, 2008
and is filed under
tutorial-blog
. You can follow any responses to this entry through the
comments feed
.
2 comments
hehehe, gak usah takut, harusnya sih ok ok aja kok, kalo mau aman sih dibackup aja dulu sebelum diganti, gitu. jadi kalo ada apa2 ya diambil lagi dari backupnya tadi.
May 12, 2008 at 8:41 AM
Post a Comment
Sponsor
Frend-Blogs
Blog Archive
- December 2009 (1)
- November 2009 (3)
- May 2009 (2)
- April 2009 (2)
- March 2009 (2)
- February 2009 (1)
- January 2009 (1)
- December 2008 (2)
- October 2008 (2)
- September 2008 (7)
- August 2008 (5)
- July 2008 (4)
- June 2008 (5)
- May 2008 (14)
- April 2008 (8)
- March 2008 (23)
Recommend My site
Copy the code below, insert into your site/blog and then contact me :)