Creating "Read More"

By making the "Read More" or something, postings that appear on the main page only certain parts only. And to show all the posts, must go to the post page
how:
1. Log into your blogger account, choose "Layout" and "Edit HTML",
2. Check the "Expand widget templates",
3. Enter the code below before the closing </head> and after the ]]></b:skin>
<style>
<b:if cond='data:blog.pageType == "item"'>
span.fullpost{display:inline;}
<b:else />
span.fullpost{display:none;}
</b:if>
</style>

4. Then, to add the words "Read More" or something, find <data:post.body/> code, and add below it:

<b:if cond='data:blog.pageType != "item"'>
<a expr:href='data:post.url'>Read More</a>
</b:if>

5. To set the posts are "hidden", add the tag <span class="fullpost"> Post a hidden </ span> in your post.

Good luck!

No comments:

Post a Comment