les james

design & stuff

Templating WordPress Image Attachments

Wordpress doesn’t come with any native tags to template post attachments so I came up with a function to help. Simply include a chunk of code in your functions.php file and call the function from inside the loop. The function returns and array with multiple pieces of info about your post attachments.

Breaking Away From Viewport

This site’s design is reaching a crossroads. I am starting to remove major elements of the Viewport theme in a move to increase the site’s usability and layout aesthetics. This move is being done with special category templates for the web and interactive sections of my portfolio. I have removed the sliding panels and opted [...]

Rounding Corners

While writing up my portfolio entry on mobile templates, I got an idea of how I can round the corners on the viewport theme header images.  I changed the template around on the single page to inject the image url into a background style on the wrapper div instead of creating a full img tag.  [...]

Viewport Theme

Update: June 22, 2010: I am no longer using the Viewport Theme on my site. If you have a question about your Viewport Theme or WordPress in general feel free to shoot me a message through Twitter. Archived Post… I finally had a little time to work on this site.  Wouldn’t you know I’ve thrown [...]