Search 2.0

Wednesday, November 24, 2010

Making Read More plus the title of article

A few months ago, Kang Rohman explained about making Read More function, click this posting to read again. For you who would like to modify this Read More, Kang Rohman has a tip. The tip is about making the function of Read More plus the title of the article. Through this modification, the title of the article will be added automatically after Read More. Do you feel interested? So, feel free to read the rest of this posting…ok!
To make the function of Read More is not too difficult, you only need to add a few code at read more code that you have ever made before in your template. Here are the steps, in my previous tutorial; Kang Rohman gave a code like this:


<b:if cond='data:blog.pageType == "item"'>
<style>.fullpost{display:inline;}</style>
<p><data:post.body/></p>
<b:else/>
<style>.fullpost{display:none;}</style>
<p><data:post.body/>
<a expr:href='data:post.url'><strong>Read more...</strong></a></p> 
</b:if>

Erase the code above and change with the code below:

<b:if cond='data:blog.pageType == "item"'>
<style>.fullpost{display:inline;}</style>
<p><data:post.body/></p>
<b:else/>
<style>.fullpost{display:none;}</style>
<p><data:post.body/></p>
<strong><a expr:href='data:post.url'>Continue reading  &#8220;<data:post.title/>&#8221; &#160;&#187;&#187; </a></strong>
</b:if>


Don’t forget to click SAVE TEMPLATES.
Now, see the result! The function of Read More will always have the title of your article, too.
Good Luck!

No comments:

Page Content

Page Content