Wednesday, May 10th, 2006...3:17 pm

Image Handling with PressRow

Jump to Comments

An image that uses the right_off classWhat’s the first thing a kid does when you give her a book? She opens it up and turns page after page, looking for pictures. In many ways, the online audience is not so different from that little girl - they scan content in fractions of seconds, looking for bits and pieces of information that appeal to them.

Pictures are one of the very few universal elements you can use to really seize the attention of your audience, and the more effectively you are able to display them, the better off you’ll be. With that in mind, PressRow comes with a set of pre-defined CSS classes that are dedicated solely towards image handling. When you want to include an image, simply add one of these classes and voila! Instant image presentation gratification!

An image that uses the center classHere’s a brief summary of the included classes along with their behaviors:

  • left: aligns the image to the left, adds a frame to the image, and wraps the text around it
  • right: aligns the image to the right, adds a frame, and wraps the text
  • center: aligns the image in the center of the column, adds a frame, but does NOT wrap text
  • left_off: aligns the image to the left, wraps the text, does NOT add a frame
  • right_off: aligns the image to the right, wraps the text, does NOT add a frame
  • center_off: aligns the image in the center, does NOT wrap text, does NOT add a frame

An image using the left classYou are advised not to use images larger than 486px wide within the context of the design, as that could “break” the design in Internet Explorer. Technically, images that use the “center_off” class can be 500px wide, but don’t press your luck, ok? ;-)

Although it may seem strange to some, it is not recommended to use the built-in WordPress image handling functions. Specifically, I’m talking about the alignment option that accompanies image inclusion in WordPress 2.0+. If it were up to me, I would blast the WYSIWYG editor all to hell, and then I’d require that everyone use the regular old post editor. The WYSIWYG editor throws tags around where they’ve really got no business, and the end result is usually some very sketchy formatting. In order to avoid this altogether, I recommend only using the old-style post editor.

15 Comments

  • […] about Welcome to PressRow! Image Handling with PressRow […]

  • […] Image handling […]

  • So where would you find the old editor plugin for WordPress?

  • Sammy, the old editor can actually be accessed through WordPress 2.0+. All you have to do is disable the “rich visual text editor.”

    Here’s how you do it:

    • On the WP administration panel, click on “Users”
    • The ensuing screen should show your options as the administrator of the blog. On the bottom left of that page is a checkbox that toggles the rich visual text editor status. Uncheck that box, and you’ll be good to go!
  • Personally, I am so glad to have found such an easy system that I can work
    at home effortlessly.
    I have been working at home for over 21 years, and finally this vehicle has
    come along and has changed my life for the better! It’s about time.
    …and I don’t have to Speak-2-no-1 …ever

  • Hey
    Just updated ur site.Image handling wordpress is interesting yaaaaaar.

  • Hi there. I was wondering if someone could help me. When I enter an image in a post, I’ve tried adding the class attribute using this format:

    But it’s not working! If I take out the .left (or whichever class I try to indicate), the image shows up in the post, but I can’t access these styles.

    What am I doing wrong?

    Thanks for your help…

  • Bill,

    When you declare your classes, you must leave out the period — that’s an indicator that is only used inside the CSS, not the XHTML.

    So, when you declare your image, do so like this:

    <img class="left" src="..." >

  • Please delete my last post. I’m obviously new to this, and I just realized I was doing it incorrectly. Please excuse my wasting your time, and again, please delete these two posts. Thanks for the great theme…

  • Wow, that was fast. Yes, I realized what I was doing wrong after I sent the first post. Thanks so much for your help…it’s greatly appreciated.

  • I just switched to this template and love it. Now my pictures are not framed although they were in the prior design I was using.

    Any suggestions would be appreciated.

  • Chris, any chance you’re going to create a random header file for this, like with Cutline?

  • Erick,

    Eventually, I’ll change this theme to accommodate random header images. Right now, I’m overloaded with other things that require my attention, so a new version of PressRow will have to wait.

    It’ll happen eventually — I’m just not sure when.

  • […] Different image styles(classes) for better user experience. Here’s the list of supported classes. […]

  • i use pressrow from within wordpress.com.
    did you build something into pressrow thats for adding captions below floating images?

    thanks for answering and thanks a lot for this cool theme.
    peter.

Leave a Reply

You must be logged in to post a comment.