Support » Plugin: NextGEN-Galleryview » How to add a link on the active image?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Brandon Hubbard

    (@bhubbard)

    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.

    no no, your reply does not correspond to the message

    I would make a lightbox to click on the active image

    nobody? :_(

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

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

    You don’t need to use lightbox. Fancybox works same way. Just checkout live demo 🙂 .

    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.

    Plugin Author Brandon Hubbard

    (@bhubbard)

    @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.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to add a link on the active image?’ is closed to new replies.