Tuesday, April 21, 2009

how to add "read more" tag to blogger

This feature has been long and existing in wordpress blogger but now i found the hack for getting you started in blogger.

It is realatively easy to write and use the Read more tag to your blogger template. just follow the simple proceedures below and you are well to go.
First, log into your blogger account, go to layout-->Edit Html. You would however want to download your existing template just incase things might go wrong for you.
Press Ctrl+f for your search box

Search this part of the code in your template:


Once you find this code, "REPLACE" the above line with the following set of lines:



Save your template and go to Settings-->Formatting and scroll below till end and find the Post Template window and in the window box, paste the following lines:



Save the settings and when you create a new post, you can observe(html section) that the following code is automatically generated:

f you want you add the "more tag to you existing posts, just go to "edit HTML" and paste the part of the article you want to be visible when the read more tag is clicked, between these two lines:

No comments:

Post a Comment

drop a message