How to create expandable post (read more...) for XML template

1. Go to your Blogger Control Panel - Edit HTML
2. click "Expand widget templates".
3. Scroll down until you found code like below:




4. Add the following code to your template.







5. and Add also the following code, after the



Read More......


6. save.


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:



This part can actually go in the post template, if you don't want to have to type it for each post. You'll enter the summary text outside the span tags and the remainder inside, like so:

Here is the beginning of my post. And here is the rest of it.

Now, when a reader visits your blog, this post will appear like this:

Here is the beginning of my post.
Read more!

When they click the link, they'll go to the post page where they'll see the whole thing:

Here is the beginning of my post. And here is the rest of it.

Category:  
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response.
0 Responses