WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

happytables has a cool feature where if you are logged in, on the home page && haven't uploaded a logo yet it will insert a drag + drop image box similar to image uploader on the backend.

any ideas on how to pull this off? currently digging thru the source code, but if anyone has some pointers, i'd greatly appreciate it --

share|improve this question
Do you have a link to this actually happening in the wild? – Sterling Hamilton May 2 '12 at 18:40
You need to be logged in to view it, but here's a wild screenshot: awesomescreenshot.com/0074t7861 – Noel Tock May 3 '12 at 11:33
up vote 6 down vote accepted

I actually wrote this for Happy Tables so should be able to give you a couple of pointers, though I don't have time to go into too much depth at the moment.

We use this "image well" on tables tables a fair bit, it's basically the drag/drop upload from the WordPress upload. Similar to something like this: https://github.com/tobiasnygren/Drag-Drop-for-Post-Thumbnails we use Plupload for the image well, which send the file to the WordPress media-upload.php.

Anyway, this is all open source from Happy Tables which you can view here: https://github.com/themeforce/framework/blob/master/core_options/tf.options-of-uploader.php

It is pretty modular, so you might be able to use it as is pretty much. It does lean on WP Thumb, which you can download here: http://wordpress.org/extend/plugins/wp-thumb/

share|improve this answer
thanks joe !! (: – flash May 3 '12 at 18:45
Just discovered the themeforce framework - what an incredible resource! many thanks for this answer! – somatic Jul 22 '12 at 8:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.