Forums

NextGEN Gallery
[resolved] How do you add "data-id" to the html for a thumbnail? (3 posts)

  1. loulantos
    Member
    Posted 1 year ago #

    Hi,

    I'm trying to use Nextgen Gallery with the jQuery Sandbox plugin, but one step involves adding a 'data-id' parameter to 'img' tags, and I can't find the NGG file that produces the HTML for how thumbnails are displayed. Could anyone let me know what that is?

    http://wordpress.org/extend/plugins/nextgen-gallery/

  2. loulantos
    Member
    Posted 1 year ago #

    Okay, I've figured this out. It's in the view/gallery.php file that you edit this information.

    Does anyone know how to add "$gallery->title" to the img tag though? I've tried using it, and it's empty. I just want to be able to add the name of the gallery to the class so that certain galleries have specific css.

  3. loulantos
    Member
    Posted 1 year ago #

    I just used the "$gallery->anchor" property instead. That seemed to work fine as a value unique to that specific gallery. I'd still be curious how to get the "$gallery->title" involved, though.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.