Subscibe our Newsletter for FREE and stay up to date with our daily lesson*

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 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?

Let's talk it out!

6 Responses to “Post Excerpt for Blogger”

  • Stydayfam

    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!


  • Self Esteem

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


  • Surya

    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.


  • Linda Moon

    Freedom of speech my friend, that’s why


  • Bobbi Lusco

    This is a exceptional piece, I found your blog page checking google for a related subject matter and came to this. I couldnt come across to much additional info on this piece of content, so it was nice to discover this one. I definitely will end up being back again to check out some other posts that you have another time.


  • pocah

    Great post. YOu make it seem so easy to share your experiences. I wish I could do as well in sharing on my blog.


What is in your mind ?

Subscribe Me

Learn more the basic tips about WordPress and PHP coding. You can subscribe to our Newsletter to stay in touch with every new stories FREE

Sponsors

WooThemes - Where there's a Woo, there's a way!

Our FaceBook (new)


Discussion Topics

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 need anything, then submit it on Contact Us. If you feel satisfy with my work, please support me to keep it developed

Our Community

Discussion

Natividad Deacetis

Don’t wait any longer to boost your business and skyrocket your profits by doing business with one

Alan Lam

Thanks for your great effort to develop this wonderful tools. However, it doesn't work at IE 7 bu

Emogene Betak

educate me.
Close