Post Excerpt for Blogger

Home page excerpts gives your audience a brief view about a bunch of your posts at once and if they are interested in any of them, they’ll click on that post link to read the full entry.
Note that excerpts will only show when visitors view the home page or archived page. Now to do [...]

Home page excerpts gives your audience a brief view about a bunch of your posts at once and if they are interested in any of them, they’ll click on that post link to read the full entry.

Note that excerpts will only show when visitors view the home page or archived page. Now to do this you have to enable post pages first (Go to settings–>archiving and enable post pages).

You need to add three bits of code here to get through the process. I’m assuming that you have the latest template type blog and not the classic template blog.

Go to layout and click on edit HTML.

Add the following code in your template style sheet. That is in between the <style> </style> tags. If you do not find the style tags just add it below the opening <head> tag.

<b:if cond=’data:blog.pageType == “item”‘>
span.fullpost {display:inline;}
<b:else/>

span.fullpost {display:none;}
</b:if>

Then search for <data:post.body/> tag.(Use ctrl+f to make your search easy).

Add the following code after that <data:post.body/> tag.

<b:if cond=’data:blog.pageType != “item”‘><br /><a expr:href=’data:post.url’>Read the rest of the entry</a>
</b:if>

The changes in your template are done. Now you have to add a small bit of code to every post that you want to show as a excerpt.

Add <span class=”fullpost”></span> to every post in HTML mode.

You need to add it to every post should you want every post to show only an excerpt in your Home page and archive page. There is no cut out for this.

Anyway, this is Blogger and not Wordpress right?

Posted on , , ,

Bookmark and Share

4 Responses to “Post Excerpt for Blogger”

  1. Stydayfam says:

    Why hello fellow forum people! I well-grounded wanted to establish myself here as this looks like a sheer interesting forum! I myself am engrossing in things like writeing and computer revamping so if anyoune needs facilitate farm out me identify! I also Suffer from Sciatica so if you aslo include this infection allow in me have knowledge of so we can share some stretches!

  2. Self Esteem says:

    Thank you so much, there aren’t enough posts on this… keep up the good work

  3. Surya says:

    Need Help!

    When I post the below tag before it says error while saving the template.


    span.fullpost {display:inline;}

    span.fullpost {display:none;}

    Get back to me.

  4. Linda Moon says:

    Freedom of speech my friend, that’s why

Leave a Reply


AJAX Random Post

  • How to Add PageNavi on WordPress

    Hello, in this post i want to tell you how to install WP PageNavi which is commonly used to make a well-structured navigation of your posts in the home and archive pages. You can take a look on my home page for the simple sample :-) Download the plugin first on WordPress Plugin Directory Upload
  • AJAX Comment Page

    If you are running big sites or popular blogs, you must have a lot of comments in your page. It does not matter where are the relevant and the spam, but a page with more than 100 comments in one page must be disturbing your new visitor to read them. As a result, some of your comments will not be rea
  • Protect Your Contents with Wordpress Plugin

    Do you ever see your handmade article on another site without your permission. It may be okay if they put the original link to you as a revision. But if they don't, it will be a loss for you. Although Google will consider it as duplicate contents, still the Digg and other social bookmark won't. Fur
  • How to Check Incoming Links

    Bloggers may wonder about their ranks, backlinks, number of visitor, who is online, feed reader, etc. That is why there are numerous of web tools or web service use this opportunity to create just free widgets for share or maybe paid services to improve the ranks theirselves. In this post, i will s
  • Add Signature on Post

    Maybe it is rather important for someone or some people to put their signature on their own writting. The signature itself symbolize legal and official of the contents. For bloggers, signature can also be introduced electronically. Make a drawing and scan it as JPEG picture is a good idea. You can

References

Who am I ?

My name is Julian Widya Perdana. I study at University of Gadjah Mada, Yogyakarta. I am a young developer addicted in JavaScript, Plugins, Themes, AJAX, and PHP developement. If you feel satisfy with my work, please support me to keep it developed