Monday, June 22, 2009

How To Add Read More To All Of Your Posts

From this tutorial, you will be able to add a read more link to all of your posts, old or new. Adding a read more link to your posts can and will save upload time of your blog for your readers. This will be convenient for your readers and definitely keep them happy from the long wait to get the information they need now. This tutorial will be useful for blogs that have long posts. As always, make sure you download your current existing template just in case it doesn’t turn out as expected.

Steps to follow:
1. Login to your Blogger dashboard.
2. Go to Layout > Edit HTML (click on “expand widgets” box)
3. Now search for this line of code: ]]></b:skin>
4. Now add the following code right after it:

<b:if cond='data:blog.pageType == &quot;item&quot;'>
span.fullpost {display:inline;}
span.fullpost {display:none;}

5. Next, you will need to search for this line of code: <data:post.body/>
6. Once you have located the code, add all of the following section code right after it.

<!--READ-MORE-STARTS--><b:if cond='data:blog.pageType != &quot;item&quot;'>
<a expr:href='data:post.url'>Read More!</a>

Note: You will be able to modify the text above in orange.

7. Preview the page, and if all is fine, Save Template.

Note: You will not be able to see the Read more link yet, or after step 7.

8. Once you have saved your template, go to Settings>Format. Scroll down to Post template and add the following section code inside of it, then click Save Settings.

<span class=”fullpost”>


Note: You should now be able to see a Read more link under all your posts.

Note: The way this code works: Everything between the <span class=”fullpost”> and </span> will be the hidden information until the reader clicks on read more, which will bring them directly to the post link. For example: The part in red will be shown, the part in blue will be hidden until readers click read more link.

This part will be shown <span class=”fullpost”> while this part here will be hidden until the reader clicks on the read more link. </span>

Labels: , ,


Post a Comment

Subscribe to Post Comments [Atom]

<< Home