September 03, 2009

show a part of post in blogger

When our posts are long is recommendable to show them in other dedicated page to avoid have a extremely large slide bar in the browser. I found a solution for it from Blogmundi.

In a few words:

-Go to: 'Layout'->'Edit Html'-> 'check Expand Widget Templates'

-In the code find <div class=’post-body’>

-Add the code in red color:
<div class='post-body'>
<b:if cond='data:blog.pageType == "item"'>
<a expr:href='data:post.url'> More...</a>
<div style='clear: both;'/> <!-- clear for photos floats --> </div>

-in the post add:
<span class="fullpost"> <---Second part of post ---> </span>

Note: if you want that appear in every new post, to remember use it, go to 'Settings'-> 'Formating' ->'add the code in Post Template'



No comments:

Post a Comment