• Resolved mobilegolfer

    (@mobilegolfer)


    Hi,

    This might be an atypical use case but here goes…

    I need to capture the click event for thumbnails so that I can grab the name of the thumbnail and pass it along. I’d like to prevent the default behavior which is to display the full size image.

    Is there a hook? By the names of the hooks it did not appear so.

    With jQuery I can use img as selector and stop the default event handling to do my own thing. Unfortunately there appears to be no more specific selector to use…

    <img title="cheetah" alt="cheetah" src="http://mist.dynu.com:8888/ludicrisp/wp-content/gallery/animals/thumbs/thumbs_cheetah.jpg" width="240" height="160" style="max-width:100%;">

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Contributor Imagely

    (@imagely)

    Depending on the theme and which display you are using you should be able to generate a fairly specific selector for the display’s images … for example, the following should be selecting the NextGEN Gallery Basic Thumbnail images:

    div.nextgen-gallery-thumbnail > a > img

    You idea to approach this with a JavaScript function is also likely best although we do not currently have anything to suggest to accomplish what you are describing as is.

    Thanks!

    – Cais.

    • This reply was modified 7 years, 11 months ago by Imagely.
Viewing 1 replies (of 1 total)

The topic ‘Gallery as image selector’ is closed to new replies.