How to make the initial in posts a capital letter

by John Ankarström on May 24, 2009

in Design

At WordPresser, the first letter in post is a huge capital letter. When I wanted to do this, I thought I had use p:firstletter everywhere I wanted it. This could be tricky, because all themes doesn’t have the same div-, p-, or whatever-classes for posts.  Then I found a guide at WordPress Guy that shows how to make those big capital, by easily inserting a <span>. You just have to insert a CSS code into your style sheet. This works everywhere CSS and HTML works.

He also shows a code for doing this automatically in WordPress. Excellent! This is the best guide I’ve found for doing this.
Obviously, you can insert the <span> anywhere in your template, but the automation code will be useless everywhere, it just doing this in posts.

Spread some love:
  • Digg
  • StumbleUpon
  • Tipd
  • del.icio.us
  • Twitter
  • Facebook
  • Tumblr
  • Ping.fm
  • Google Bookmarks
  • Technorati
  • E-mail this story to a friend!
  • RSS

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous post: Insert feed footer with WordPress Plugin CopyFeed

Next post: Redirection WordPress Plugin