Quick & dirty fix for Slimbox to attach itself to all images
While implementing yet another a WordPress site, I found myself in the situation where I wanted to display any and all images in lightboxes, but with a minimum of interaction from the editor’s part.
All current plugins that integrate Slimbox (that I know of – this one, for example) actually require the editor to add the rel="lightbox" attribute. But since the editors of this site have no HTML knowledge whatsoever and will be editing in “visual” mode, this hinders deployment.
So I came up with a modification to the actual javascript of Slimbox, to make it identify all links to images and lightboxify them
read full article
