Photographs can help turn an ordinary blog posting into something memorable. And the easiest way to add a photo to one of your posts is to use a WordPress plugin called Photo Dropper.
The Photo Dropper plugin makes it easy to find and embed any image from Flickr that is available under a Creative Commons (CC) license. Even better, it creates a link that gives credit to the photo owner, meeting the attribution requirement of the CC license. And it even lets you search for a photo, select the size that you want, and embed the appropriate HTML code, all from the comfort of the WordPress post editor.
Photo Dropper provides terrific functionality, but the results you get out-of-the-box don’t exactly blend in well with the Thesis Theme. So the rest of this post will show you how to make the Flickr photos you get through Photo Dropper look like a natural extension of Thesis.
Customizing The Photo Dropper Plugin
The first thing we want to do is customize Photo Dropper so that it inserts a bit of HTML before and after the image. That HTML code will reference a custom class that we can then define in our custom CSS file. Our CSS file will define the visual qualities that will make our dropped-in photos look like a natural part of our Thesis site.
So after you’ve installed the Photo Dropper plugin, go to the Settings for Photo Dropper, scroll to the bottom of the options, and enter the DIV code to match what you see in the image below (type “<div class=photo_right>” into the Insert Before field, and “</div>” into the Insert After field):
Customizing Your CSS Code
Now that we have customized Photo Dropper to wrap our photos inside a DIV element with a custom class, we can go about defining the attributes of that custom class within our CSS code. What we want to do is modify the “custom.css” file contained within the “custom” folder of the “thesis” theme folder. Add the following lines to custom.css, save the file and FTP it back to your server:
.custom .photo_left, .custom .photo_right {
background: #eee;
border: 0.071em solid #ccc;
color: #888;
margin-bottom: 1.571em;
padding: 0.714em;
}
.custom .photo_center {
clear: both;
color: #888;
float: none;
margin-bottom: 1.571em;
text-align: center;
}
.custom .photo_left {
clear: left;
float: left;
margin-right: 1.571em;
text-align: left;
}
.custom .photo_right {
clear: right;
float: right;
margin-left: 1.571em;
text-align: right;
}
.custom .photo_center img {
background: #eee;
border: 0.071em solid #ccc;
margin-bottom: -2.714em;
padding: 0.714em 0.714em 2.714em 0.714em;
}
.custom .photo_center small a img {
background: transparent;
border: none;
margin: 0;
padding: 0;
}
.custom .photo_center small a, .custom .photo_left small a, .custom .photo_right small a {
color: inherit;
text-decoration: none;
}
That’s it! Now you can simply use Photo Dropper. When you do, you’ll see it insert HTML code that looks similar to this:
<div class=photo_right><a title="Photo Title" href="http://www.flickr.com/photos/..." target="_blank"><img src="http://farm2.static.flickr.com/..." border="0" alt="Alternate" /></a> <small><a title="Attribution License" href="http://creativecommons.org/licenses/by/2.0/" target="_blank"><img src="http://www.thesistheme.org/wp-content/plugins/photo-dropper/images/cc.png" border="0" alt="Creative Commons License" width="16" height="16" align="absmiddle" /></a> <a href="http://www.photodropper.com/photos/" target="_blank">photo</a> credit: <a title="Owner" href="http://www.flickr.com/photos/..." target="_blank">Photographer</a></small></div>
We’ve got the default set up to use the “photo_right” class, which floats the photo to the right of the text, but you can easily change that on a case-by-case basis to use the “photo_left” class if you want to float the photo to the left.
Photo Dropper Before And After
The easiest way to understand everything that the custom CSS code is providing is to show a dropped-in photo without any formatting, and the same photo using our customizations. Here is a picture of a green leaf, dropped in using the defaults provided by Photo Dropper.

photo credit: Krassy Can Do It
Notice how the text doesn’t flow around the image, the anchor links are rather prominent, and there’s no frame around the image. It just doesn’t look like it fits in.
And here is the same photograph with our custom styles applied. Notice how the entire thing, image, links and all, are placed within a nice, subtle frame. And our text is flowing around the image, which is floating to the right. Even the credit line floats to the right.
And the credit line, while still containing links back to the owner of the photograph, is a nice subtle shade of gray so that our readers can focus on our content and not be overly distracted by the photos. The photos are meant to support our content, not lead readers off to play with Flickr for the rest of the day.
So that’s it! Now all you Thesis bloggers can go forth and Flickr with Photo Dropper. And if you like these tips, please leave me a comment and/or subscribe to the RSS feed so you don’t miss out on any.


{ 21 comments… read them below or add one }
Nice blog and good tips. I may have to incorporate some of them into my Thesis powered blog. Look forward to reading more of your tips in the future.
Keep up the good work,
Chris
@Chris – Thanks for the compliment. I’ve picked up a few ideas from your blog as well. In fact, I’m going to head over there now and ask you a thing or two. Coincidentally, it has to do with displaying email subscription options. I really liked how you presented the RSS and Email options on your site. Because a lot of people still subscribe via email, I want to make it easier for them to do so here and on my other blogs.
The Email and RSS subscriptions on my blog were added fairly easily. They are just images that I found on another blog so I just added them along with a link to my feedburner feed in a standard text widgets. I agree with you though, a lot of people still like to subscribe via email so adding a simple option for them to do so on a blog is a good idea. Let me know if you have more questions and I’ll be happy to help.
This is a great tip! I love Thesis, but hate it when it takes me hours to tweak something. For example, I’ve been having trouble getting any contact form to work. Any recommendations? I have the latest WP and Thesis versions.
@Heather – I’m glad you liked this tip. It did take a while to tweak it, but it saves me so much time when using Photo Dropper that I think it was well worth it. It would be great if Thesis solved every possible problem we might have, but I guess that just isn’t realistic. It spoils us with the things it does do, and for the rest we have to deal with WordPress, CSS, PHP, etc.
As for contact forms, I have to admit that I haven’t done anything with them yet. As soon as I have a need for one I’ll tackle the issue and let you know what I figure out. I have seen a few form plugins mentioned, and I think the Thesis manual talks about one or two. Your best bet is probably to ask on the Forum and see what others have done.
Based on some feedback from the Thesis Forum, I have updated my CSS stylesheet customizations to also support a centered photo. Notice how I had to use my mad CSS skills and play a few tricks, like negative margins, to get the same look from the centered frame. Hope you like it.
Really useful tutorial, which I will be using on my Thesis-powered sites.
@Jeremy – Glad you liked the tutorial. It’s nice to hear from people who make use of it.
I may have missed this, but can you use Photodropper to put an image in the multimedia box?
@Jeremy – Yes and no. PhotoDropper only adds a helper to the Post and Page editors. You could use it to temporarily place an image in a post, then copy the HTML code that it creates and paste that in as custom code for the Thesis Multimedia Box.
But the styles that I’ve defined don’t look very good in this context, so you’d need to pretty it up a bit. And there would be no easy way to rotate these images – you’d be stuck with just the one. So I think there are probably better ways to do what you have in mind. Unless I misunderstood the question.
No, you understood perfectly. Not being able to rotate is not an issue. I tend to have pictures on rotation for the home page and a specific image associated with a specific page or post, so that might work fine. Thanks.
This is a great tip. I normally buy all of my images because I don’t want to deal with things like this, but it sounds like this plugin does alot of the work for you. I’ll definitely have to give it a try.
Thanks so much. This tutorial is a LIFE SAVER!
Fantastic article. I am using the Thesis theme for some clients who wanted to add pictures to their theme.
When adding the photos, they did not look to good. This article saved a lot of CSS work.
Thanks for you help.
Richard
Hi Pat: If I understand correctly, this places the image within the post itself. I like to use the in-built Thesis image options (Post Image) because this makes delivering thumbnails with teasers nice and easy.
Is there any way to integrate PhotoDropper so it puts the image into the Thesis Post Image container?
Great question, Simon. I’m working on an answer. In fact, it will be a blog post, as it took some figuring out. Stay tuned and I’ll let you know when I’ve got everything worked out.
Okay, Simon. Take a look at How To Use Photo Dropper With The Thesis Post Image Option and let me know how well that answered your question.
I really like Photo Dropper, a nice, simple solution with excellant results. However, I post the Title, Some Contents, and tinyurl to Twitter. When the photo is posted at the top of the articles, the photo credit are posted as the lead for the Contents excerpt. At the moment I am curing this quirk by putting the photo at the beginning of the second paragraph when possible. Is there another possible solution?
Thank, Wayne
Wayne,
I noticed this quirk with newer versions of Thesis. That’s why I changed how I am using Photo Dropper, which I described in this post:
http://www.thesistheme.org/photo-dropper-thesis-post-image-option/
Give that a try.
I’ve been meaning to install Photo Dropper for ages now, and to use this excellent tutorial to style it nicely. Now I see that development has stopped and there may be some problems.
I can’t find any up to date information elsewhere, so I was wondering whether you knew how well Photo Dropper works with Thesis 1.7 and WP 3.0?
Thanks.
I haven’t upgraded any of my Thesis 1.7 sites to Wordpress 3.0 yet. I’ll probably wait for Thesis 1.8, which is in beta testing now, before I upgrade. And I’ll have to check all the plugins that I use, although thankfully it looks like a lot of the plugins are getting updated for WP 3.0 fairly quickly.
{ 8 trackbacks }