How to create Read More?

If your post is too long, then you think to cut some of your post. We can Expandable Post Summaries from our blog. Don't do it, because with few modification on yor layout, we can hide some post by the "read more" link. Note that you'll need to have post pages enabled in order to make this feature work and use XML blogger template.
And now let's do it.

Follow Step 1

After login with your Google Account to your blogger, lets go to Layout tab
Go to Edit HTML tab. Then click Expand Widget Templates
After that, find } ]]></b:skin code (you can press Ctrl + F from your keyboard and type } ]]></b:skin). Then Place this code following code after } ]]></b:skin

<style>
<b:if cond='data:blog.pageType == "item"'>
span.fullpost {display:inline;}
<b:else/>
span.fullpost {display:none;}
</b:if>
</style>


After that,add the following code under the code <p><data:post.body/></p>

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


And save your work!

Follow Step 2

The final piece that we need is a little bit of code in your actual post. Each post that you want to use this feature on will need this code:

<span class="fullpost"> YOUR TEXT OR CONTENT HERE </span>
 

Code Box for Blogspot

Final result :
this is for example

This tutorial assumes that you have at least little bit knowledge of working around with templates. This Professional looking Code Box can also be used with Wordpress, but here I am taking the example of Blogspot. Also this Code Box comes with a hover effect, that is when you hover your mouse over this the color changes.

Here we start:
Login to Blogspot and on your Dashboard choose the blog for which you want to Add The Code Box and then click on Layout (Tata Letak) tab:



Once there, click on Edit Html tab :



Now in Edit Html tab, before proceeding next, it would be a better idea to backup your template, by clicking on Download Full Template link.
Now just before the ]]></b:skin> add this Code:

.code {color: #998076; border : 0px solid #DADADA;padding : 5px 5px;font-family : Consolas, "Courier New", Courier, mono, serif;font-size : 12px;background-color : #251e1b; width : 75%;overflow : auto;margin : 10px 0 10px 10px; border-left : 20px solid #e48608;max-height : 500px;min-height : 16px;line-height : 16px;}
.code:hover {background-color : #2c221e;}


Save Your Template. And it is done.

Now whenever you want to put any code in your template just use the div class code as shown below to your post :

<div class="code">
YOUR TEXT OR CODE GOES HERE
</div>
 
 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. erastMedia - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger