Need a Fresh Start for Your Internet Business? Grab My FREE Report!

How to Use TimThumb to Automatically Resize WordPress Post Images Part 6: Styling Image with CSS

Keller Hawthorne | November 12, 2009 | 4 Comments
WordPress
How to Use TimThumb to Automatically Resize WordPress Post Images Part 6: Styling Image with CSS
This post is part [part not set] of 6 in the series...
How to Use TimThumb to Automatically Resize WordPress Post Images

Step 5: Style Your Image with CSS

Remember that class we inputted into the code for our image? We can use that to style our image in the style.css template file. In my case, I wanted the pictures aligned to the left of the post excerpts with a border wrapped around them. To achieve this, I added the following code to my stylesheet:

.homethumb {
padding:  0px;
margin: 0px 15px 15px 0px;
float: left;
border: 1px solid #dddddd;
}

Final Result:

Using TimThumb and CSS to Create a Thumbnail

Using TimThumb and CSS to Create a Thumbnail

You’re all done!

Do Not Rinse and Repeat!

You won’t need to follow all of these steps the next time you want to resize an image post for your home page. Simply add the Custom Field to your posts.

Top 3 Reasons TimThumb is Not Working On Your Blog

  1. Your file permissions are incorrect. If the permissions I set don’t work for you, try changing the 777 to 775 and vice-versa.
  2. Your PHP code is broken.
  3. You forgot to put the correct Custom Field “Name” into the PHP code or vice-versa.

For technical support, visit the TimThumb Discussion Forums.

Have You Had Trouble Using TimThumb? Have Any Creative Ideas On How to Use It?

WP Greet Box icon
Never miss a post - Subscribe To My RSS Feed and receive updates on new posts related to growing your Internet business!

Topic Tags:

, , , , , ,

Copyright © 2011 · FresheVenture.com · All Rights Reserved · StudioPress Lifestyle Theme Customized by KBH Web Marketing · Terms of Service · Privacy Policy · Site Map