Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial


How can I make a user-upload for a lightbox?

I'm building a website for a local tattoo shop. Everything else on the website is finished, but they want me to set it up so that they can easily upload and delete their own photos without having to call me every time or having to go into the code. I've made an employee login, but how can I make a lightbox CMS so that they can just point and click to add and remove images to their individual galleries?

Or if I duplicate the gallery, what JS functions would I use to remove images or add images and the required HTML for the CSS to apply without having to go into the code?

1 Answer

Brian Holland
Brian Holland
3,508 Points

Easy: Set them up with a twitter account and link to their twitter account from the website.

Medium: WordPress Plugins

Hard: Password protected site to alter an 'images' folder

I'm going for the hard method. They're trying to steer clear of social media because the owner doesn't like it. I've got everything set up, but once they login, what methods would I use to make the gallery editable?