WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN-Galleryview
How to add a link on the active image? (9 posts)

  1. alfredo49
    Member
    Posted 1 year ago #

    I would like to put a link on the image to open a lightbox to view the image in the original size
    What should change in the code?

    Regards

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

  2. Brandon Hubbard
    Member
    Plugin Author

    Posted 1 year ago #

    In order to do that you will need to start by following the advanced instructions:
    NextGEN-Galleryview

    1. Create a folder called nggallery within your WordPress theme.
    2. Copy gallery-galleryview.php from the "view" folder of the plugin and place it within the nggallery folder you created.
    3. Once copied over you can modify the template as needed, use the comments at the top of the page as a starting point.

  3. alfredo49
    Member
    Posted 1 year ago #

    no no, your reply does not correspond to the message

    I would make a lightbox to click on the active image

  4. alfredo49
    Member
    Posted 1 year ago #

    nobody? :_(

  5. piotr.tokarczyk
    Member
    Posted 1 year ago #

    You can use this plugin NextGEN Player Template. It use fancybox for that.

  6. alfredo49
    Member
    Posted 1 year ago #

    This plugin sustitute galleryview? Can i use with lightbox plus plugin?
    Regards

  7. piotr.tokarczyk
    Member
    Posted 1 year ago #

    You don't need to use lightbox. Fancybox works same way. Just checkout live demo :-) .

  8. jcorff
    Member
    Posted 1 year ago #

    How to add a link on an individual image in the slideshow:

    I was beating my head against a wall on this for awhile, so hopefully this will be helpful to someone else. It involves editing the files of the plugin itself, so it's not perfect.

    First, put the links you want in the description field of the images in the gallery.

    Once you have your links in place, open up plugins/nextgen-galleryview2/galleryview/js/jquery.galleryview.js

    Insert after line 465 the following code

    var mssg = "'" + gvImage.attrs.description + "'";
    var js = "window.open(" + mssg + ");";
    img.attr("onclick", js);

    Save and upload your changes.

    Code is dirty, but it works.

  9. Brandon Hubbard
    Member
    Plugin Author

    Posted 1 year ago #

    @jcorff - Thanks for providing a solution. I wasn't the original author of this plugin nor the galleryview script, I just updated it. I am using the Galleryview script from https://github.com/jeroenpx/GalleryView

    You may want to open an issue regarding adding support for linking the images. In the meantime, you can use wp_dequeue_script('jquery-galleryview'); then provide your version of the script.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.