A reader contacted me this weekend and asked how I got my excerpts on the homepage to look the way they do. So I thought I would share my secret with everyone.
If you have chosen to go with a blog homepage that contains excerpts instead of full posts, this tip will help make them look a lot better .
What’s So Bad About The Default Excerpts?
By default, WordPress takes the first 100 characters of your post and uses them as the post excerpt. As far as length, this might be fine depending on how long your posts are. The problem, is with the formatting. Take a look at this excerpt:
Another major downfall is that it does not use any images that may have been contained in your post. It ignored them completely. This can make your homepage look really boring since all of your excerpts will be text-only.
How Should They Look?
Now, here is an example of how excerpts should look. Take a look at this screen shot of an excerpt from my old homepage:
Doesn’t that look a million times better? I sure think it does. It gives the reader much more to look at then simple text. It retains the text formatting and also gives the option to include images.
What’s The Secret?
The key to making them look better, is utilizing the optional excerpt feature built into WordPress. If you don’t know what I am talking about, it can be found below the post on the write/manage pages and looks like this:
All you need to is place the information you want to be included in the excerpt. The secret is to switch to HTML view before you copy the part you want to include. Therefore, all of code is copied over. If you simply copy the post from view mode, it will only place the text in the excerpt which looks the same as the default view.
So give this a shot and let me know how it works out for you.