How to change “View with Piclens” message in NextGen Gallery

Alex Rabe’s NextGen Gallery plugin is certainly the best there is, even though I find it a tad too complex at times. I love it though, and I use it on all my sites whenever I want to upload a batch of pictures and insert them into my posts with little hassle and great convenience.

One thing that bugs me though is the message that reads

[View with Piclens] above my thumbnails, which gives the viewer a chance to see my gallery as a slideshow. It’s a great feature.

Trouble is, nobody actually knows what PicLens is or what it does – including myself, let alone my readers.

Lucky for us, it’s fairly easy to fix – let me show you how:

Thanks to Version 1.61, you won’t need that fix anymore: now you can change this in the Plugin settings – phew 😉

The key is in a file you can find in this plugin’s folder called /view/gallery.php.

By default, the full path to this file is wp-content/plugins/nextgex-gallery/view/gallery.php).

Have a browse and see if you can find this code halfway down the file:

<?php if ($gallery->show_piclens) { ?>
<!-- Piclense link -->
<div>
<a href="<?php echo $gallery->piclens_link ?>">
<?php _e('[View with PicLens]','nggallery'); ?>
</a>
</div>
<?php } ?>

See the bit where it says [View with PicLens]? That’s what gets displayed. Change the text inside the single quotes to anything you like – maybe something along the lines of View as SLIDESHOW perhaps.

Make sure you don’t use any special characters here – numbers, letters and spaces only please!

One thing to keep in mind – with any change you make to the source code – is that as soon as you upgrade to a new version of the plugin, your changes will be overwritten. Just in case [View with PicLens] ever comes back from its grave to haunt you again…

Have fun 😉





Jay is the CEO and founder of WP Hosting, a boutique style managed WordPress hosting and support service. He has been working with Plesk since version 9 and is a qualified Parallels Automation Professional. In his spare time he likes to develop iOS apps and WordPress plugins, or draw on tablet devices. He blogs about his coding journey at http://wpguru.co.uk and http://pinkstone.co.uk.