How to add 'Set featured' button?


I’d like to add a ‘Set Featured’ button below each image in a gallery (instead of having to open the image in the lightbox and clicking ‘Options’ to get the button to appear). How can I do this? I played with the code in this thread:, but no luck so far.

Thank you for any help!