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 Send Bulk Emails via WordPress

    Do you have a big number of commentators or responders on your blog? Sometimes you may want to send announcement or maybe just a small notification about event or something? I have created plugin named WP Mass Mail to do the work. You can download it on wordpress plugin directory It's a wordpress p
  • AJAX Random Post

    Giving animated storyline on your blog is a good idea to attract your visitor and show them the summary of your contents. As we know, there are some random post plugin on WordPress Plugin Directory to show randomed post on your widget. However, some visitor will get more attention on something anima
  • Clean The Earth Using 1800-Recycling

    Our earth has lived on very long time. It is getting worse every second because of the creature living on it. Are you realize that human's need will definitely increasing along with the quantity. To take in part saving the world, i found an interesting web about it. Just use recycling to help you
  • Post Randomizer

    Wordpress’ post is ordered by the date of publishing descending by default. It gives a sense of newest topic for the blog that up-to-date at least one post for one day. Sometime, for bloggers who manage blogs individually, of course need some time for just a break. It’s okay because blogging
  • Custom Options For WordPress Category List

    Usually, WordPress Themes have category list in their PHP code. Actually you can put your own category list on your sidebar widget or in anywhere in your theme using PHP implementation. To put wordpress category list, you have to put PHP snippets like <?php wp_list_categories($args);?>

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