• msartini

    (@msartini)


    Yout need to modify the shutter-reloaded.js file (found in the plugin directory). It’s a good practice to make a backup before.
    On the line 125, add the following:
    closebtn = ‘<img src=”https://{your-domain.com}/wp-content/themes/{your-theme}/images/close.png” border=”0″/>‘;

    replace this code:

    D.innerHTML = ‘<div id=”shWrap”><img src=”‘+shutterLinks[ln].link+'” id=”shTopImg” title=”‘ + t.msgClose + ‘” onload=”shutterReloaded.showImg();” onclick=”shutterReloaded.hideShutter();” />’ + NavBar +'</div>’;

    to the following:

    D.innerHTML = ‘<div id=”shWrap”><div id=”shTop” style=”margin: 0 auto;text-align: right;padding-right: 35px;padding-bottom: 10px;” id=”clbtn”>’ + closebtn + ‘</div><img src=”‘+shutterLinks[ln].link+'” id=”shTopImg” title=”‘ + t.msgClose + ‘” onload=”shutterReloaded.showImg();” onclick=”shutterReloaded.hideShutter();” />’ + NavBar +'</div>’;

Viewing 1 replies (of 1 total)
  • In case anyone’s having trouble locating this file, I found it here:

    wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/lightbox/static/shutter

    And the line that needed editing was 142. I’m using version 1.3.3 of shutter.js.

Viewing 1 replies (of 1 total)
  • The topic ‘NextGEN Gallery Slideshow – How to show a Imagem Close Button’ is closed to new replies.