Kevin is a french webdesigner currently living and working in Rio de Janeiro, Brasil. WordPress superfan, his jobs are very often done with it. Check his site for more.
Posts by kevin:
Automatic WP Thumbnails & Proportional Excerpts

Automatically grabbing thumbnails from posts is cool. But what about automatic excerpt lengths that match the height of those photos?
I recently redesigned a blog for a client and it had an automatic thumbnail for each post, with a fixed length excerpt beside it. It was okay, but our client didn’t like the fact that it was “cutting” his pictures off sometimes. Our goal then had 3 steps:
- 1 – To set a thumbnail’s height proportional to the original picture, so that we would not cut parts of it off.
- 2 – Use this height value to display excerpts about the same size.
- 3 – Set up an automatic Lightbox on images that are too large for the content area.


106