The way is easy to make readmore on our blog, first login to your blog, then go to design and edit HTML
checklist 'Expand Widget Templates'
Then add this script under <head>
<style>
<b:if cond='data:blog.pageType == "item"'>
span.fullpost {display:inline;}
<b:else/>
span.fullpost {display:none;}
</b:if>
</style>
then search with Ctrl + F
<p><data:post.body/></p> atau <data:post.body/>
then add this script under data post body.
<b:if cond='data:blog.pageType != "item"'>
<a expr:href='data:post.url'> Read More..</a>
</b:if>
You can change readmore by yourself, For example :
Next.
check it out.
Continue..
or other
next step go to setting - Format
and the empty box below, fill in:
<span class="fullpost">
</span>
This means that in each of our new post, it will appear the following format.
<span class="fullpost"> is a place where our posts will be truncated.
</span>
This is the end of our posts that have been cut, so if we click readmore earlier, it will come out of our posts until </span>
what is the function using this readmore?
use it for our posts to be more tidy, and more concise ... actually wrote it though. :)
Subscribe to:
Post Comments (Atom)
ABOUT ME
Albert Julius. Powered by Blogger.
0 comments:
Post a Comment